Skip to content

Commit

Permalink
[Maintenance] Fix direct and indirect deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubtobiasz committed Apr 23, 2024
1 parent a0766fc commit c3e633d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/packages/twig.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
twig:
default_path: '%kernel.project_dir%/templates'

twig_component:
anonymous_template_directory: 'components/'

when@test:
twig:
strict_variables: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace Symfony\Component\DependencyInjection\Loader\Configurator;

use Symfony\Component\HttpKernel\Kernel;

return static function (ContainerConfigurator $container): void {
if (Kernel::MAJOR_VERSION >= 6) {
$container->extension('framework', [
'handle_all_throwables' => true,
]);
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
twig_component:
anonymous_template_directory: 'components/'
defaults:
App\Twig\Component\: 'components/'

0 comments on commit c3e633d

Please sign in to comment.