-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[RFC] Deprecate 'views' directory in favor of 'templates' everywhere #24227
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
Comments
I would not change that. New projects will use |
Thanks for your quick feedback :)
👍
Same as new projects, new bundle will use
For existing ones, the migration path should be quite easy IMHHO just need to rename |
You forget that a bundle must be able to support several versions of Symfony. So, it must work with |
Sure, I forgot about that, nevermind. |
Uh oh!
There was an error while loading. Please reload this page.
The proposal, according to the new directory structure for
3.4/4.0
applications, deprecate:AcmeBundle/Resources/views
in favor ofAcmeBundle/Resources/templates
.%kernel.root_dir%/Resources/views
in favor oftwig.default_path
.%kernel.root_dir%/Resources/<BundleName>/views
in favor oftemplates/bundles/<BundleName>
.the last two are ready, but we have not done the deprecation notice in
3.4
if the old path exists and it is not added manually to thetwig.paths
list.It would eliminate future confusion about two different names with the same concept within the Symfony world. Same modus operadi, deprecate in
3.4
and remove in4.0
.What do you think?
The text was updated successfully, but these errors were encountered: