diff --git a/config/packages/test/twig.yaml b/config/packages/test/twig.yaml deleted file mode 100644 index 8c6e0b4..0000000 --- a/config/packages/test/twig.yaml +++ /dev/null @@ -1,2 +0,0 @@ -twig: - strict_variables: true diff --git a/config/packages/twig.yaml b/config/packages/twig.yaml index 02d8629..5cfd09e 100644 --- a/config/packages/twig.yaml +++ b/config/packages/twig.yaml @@ -1,8 +1,5 @@ twig: default_path: '%kernel.project_dir%/templates' - debug: '%kernel.debug%' - strict_variables: '%kernel.debug%' - exception_controller: null ## In Symfony 5, bootstrap_5 theme is supported. But not yet in sf4 !! # see sf5 https://symfony.com/doc/current/form/form_themes.html @@ -15,3 +12,7 @@ twig: # form_themes: ['@ChillMain/Form/bootstrap5/bootstrap_5_horizontal_layout.html.twig'] #form_themes: ['bootstrap_5_horizontal_layout.html.twig'] + +when@test: + twig: + strict_variables: true diff --git a/symfony.lock b/symfony.lock index 450c310..819b64e 100644 --- a/symfony.lock +++ b/symfony.lock @@ -741,15 +741,14 @@ "version": "v4.4.11" }, "symfony/twig-bundle": { - "version": "4.4", + "version": "5.4", "recipe": { "repo": "github.com/symfony/recipes", - "branch": "master", - "version": "4.4", - "ref": "15a41bbd66a1323d09824a189b485c126bbefa51" + "branch": "main", + "version": "5.4", + "ref": "bb2178c57eee79e6be0b297aa96fc0c0def81387" }, "files": [ - "config/packages/test/twig.yaml", "config/packages/twig.yaml", "templates/base.html.twig" ]