Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[RFC] Deprecate 'views' directory in favor of 'templates' everywhere #24227

Closed
@yceruto

Description

@yceruto
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? yes
Symfony version 3.4, 4.0

The proposal, according to the new directory structure for 3.4/4.0 applications, deprecate:

  • AcmeBundle/Resources/views in favor of AcmeBundle/Resources/templates.
  • %kernel.root_dir%/Resources/views in favor of twig.default_path.
  • %kernel.root_dir%/Resources/<BundleName>/views in favor of templates/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 the twig.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 in 4.0.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions