-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Maintenance] Fix direct and indirect deprecations
- Loading branch information
1 parent
496f1c8
commit 0f5cf69
Showing
3 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
13 changes: 13 additions & 0 deletions
13
src/TwigHooks/tests/Functional/.application/config/packages/framework.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
]); | ||
} | ||
}; |
4 changes: 4 additions & 0 deletions
4
src/TwigHooks/tests/Functional/.application/config/packages/twig_component.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/' |