-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Moving translations and templates folders to root folder #604
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
Conversation
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.
Even if it's fine, this Demo is the reflection of the latest Symfony SE release (currently v3.3), so I guess it is too early to do these movements, IMHO this should be done when Symfony 4 has been released in November 2017 with the new directory structure.
app/config/config.yml
Outdated
| # https://symfony.com/doc/current/book/http_cache.html#edge-side-includes | ||
| esi: { enabled: true } | ||
| translator: { fallback: '%locale%' } | ||
| translator: { fallback: '%locale%', paths: ["%kernel.project_dir%/translations"] } |
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.
Single quotes
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.
fixed
app/config/config.yml
Outdated
| - 'form/fields.html.twig' | ||
| paths: | ||
| "%kernel.project_dir%/templates/TwigBundle": Twig | ||
| "%kernel.project_dir%/templates": ~ |
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.
Same here ;)
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.
fixed
|
@mstrom thanks A LOT for this contribution. Sadly, I must close for now as "won't fix" for the reasons explained by @yceruto. This is the dir structure used by Flex/Symfony 4 ... but we are not using any of those yet (we can't until November 2017). A similar, but different, proposal is #602 which moves assets dir. This is because the decision is based on Webpack Encore, which is a library independent from Flex/Sf4 and which we already use in this app. Thanks for understanding it! |
Symfony 4 will have templates folder under root folder
So I'm proposing to move templates to root folder for simplicity and translations as well