-
-
Notifications
You must be signed in to change notification settings - Fork 503
Use default_path instead of paths for Twig and Translator config #434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| framework: | ||
| default_locale: '%locale%' | ||
| translator: | ||
| paths: | ||
| - '%kernel.project_dir%/translations' | ||
| default_path: '%kernel.project_dir%/translations' | ||
| fallbacks: | ||
| - '%locale%' | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,6 @@ | ||
| twig: | ||
| paths: ['%kernel.project_dir%/templates'] | ||
| default_path: '%kernel.project_dir%/templates' | ||
| # additional template paths | ||
| #paths: [] | ||
|
||
| debug: '%kernel.debug%' | ||
| strict_variables: '%kernel.debug%' | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure
default_pathworks here ? IIRC, it is a Symfony 3.4+ feature, while this recipe applies to 3.3+There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but I'm following the same approach that @nicolas-grekas in the previous PR:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a recipe is for new projects 99%, and no new project will use this recipe ever (or at least we don't care IMHO)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but then, it would be better to migrate this recipe to be 3.4+ and have no recipe at all for 3.3, than to have a 3.3+ recipe triggering an error on 3.3