Skip to content

Commit

Permalink
minor FriendsOfSymfony#1916 explicitly configure Twig strict variable…
Browse files Browse the repository at this point in the history
…s (xabbuh)

This PR was merged into the 2.3-dev branch.

Discussion
----------

explicitly configure Twig strict variables

Commits
-------

bd09d58 explicitly configure Twig strict variables
  • Loading branch information
xabbuh committed Jul 14, 2018
2 parents 0413504 + bd09d58 commit 8dbd244
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tests/Functional/app/Configuration/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ fos_rest:

web_profiler:
toolbar: true

twig:
strict_variables: '%kernel.debug%'
3 changes: 3 additions & 0 deletions Tests/Functional/app/ExceptionListener/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ fos_rest:
- { path: '^/', fallback_format: json }
zone:
- { path: ^/api/* }

twig:
strict_variables: '%kernel.debug%'
3 changes: 3 additions & 0 deletions Tests/Functional/app/RequestBodyParamConverter/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ sensio_framework_extra:
request:
converters: true

twig:
strict_variables: '%kernel.debug%'

services:
get_set_method_normalizer:
class: Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer
Expand Down
3 changes: 3 additions & 0 deletions Tests/Functional/app/Serializer/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ framework:
fos_rest:
view:
view_response_listener: 'force'

twig:
strict_variables: '%kernel.debug%'
3 changes: 3 additions & 0 deletions Tests/Functional/app/Version/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ fos_rest:
- custom_header
- media_type
- query

twig:
strict_variables: '%kernel.debug%'
3 changes: 3 additions & 0 deletions Tests/Functional/app/ViewResponseListener/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ fos_rest:
format_listener:
rules:
- { path: ^/, priorities: [ html, json, xml ], fallback_format: ~, prefer_extension: true }

twig:
strict_variables: '%kernel.debug%'

0 comments on commit 8dbd244

Please sign in to comment.