diff --git a/config/packages/twig.yaml b/config/packages/twig.yaml index f9f4cc53..f299b5cb 100644 --- a/config/packages/twig.yaml +++ b/config/packages/twig.yaml @@ -1,6 +1,9 @@ twig: default_path: '%kernel.project_dir%/templates' +twig_component: + anonymous_template_directory: 'components/' + when@test: twig: strict_variables: true diff --git a/src/TwigHooks/tests/Functional/.application/config/packages/framework.php b/src/TwigHooks/tests/Functional/.application/config/packages/framework.php new file mode 100644 index 00000000..cb7eff64 --- /dev/null +++ b/src/TwigHooks/tests/Functional/.application/config/packages/framework.php @@ -0,0 +1,13 @@ += 6) { + $container->extension('framework', [ + 'handle_all_throwables' => true, + ]); + } +}; diff --git a/src/TwigHooks/tests/Functional/.application/config/packages/twig_component.yaml b/src/TwigHooks/tests/Functional/.application/config/packages/twig_component.yaml new file mode 100644 index 00000000..810c72cb --- /dev/null +++ b/src/TwigHooks/tests/Functional/.application/config/packages/twig_component.yaml @@ -0,0 +1,4 @@ +twig_component: + anonymous_template_directory: 'components/' + defaults: + App\Twig\Component\: 'components/'