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 496f1c8 commit 3e46f08
Show file tree
Hide file tree
Showing 4 changed files with 22 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
Expand Up @@ -17,6 +17,8 @@ framework:
php_errors:
log: true

handle_all_throwables: true

when@test:
framework:
test: true
Expand Down
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 3e46f08

Please sign in to comment.