-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Wrong deprecation message related to PHP templates #30088
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
The deprecation message seems correct to me. Why are PHP templates to be stored in that directory, can't this be configured? Looks like something to be fixed in the PHP template configuration rather than the deprecation. |
According to the doc this is where PHP templates have to be stored. thanks @javiereguiluz for creating the issue |
There has been word on deprecating the template component if I remember correctly. Regardless, it sounds like the templating component should support this structure as well and have the docs updated accordingly. |
See into symfony/symfony#30088 The change will be for twig template but not for php. Currently a deprecated is raised.
See into symfony/symfony#30088 The change will be for twig template but not for php. Currently a deprecated is raised.
I'm taking a look at this... |
Okey, the deprecation warning is about Twig templates only, so if you have PHP templates in I'm updating the deprecation message to be more clear about this. #30952 |
…f the legacy Twig template directory (yceruto) This PR was merged into the 4.2 branch. Discussion ---------- [TwigBundle][TwigBridge] Improving deprecation message of the legacy Twig template directory | Q | A | ------------- | --- | Branch? | 4.2 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | #30088 | License | MIT #eu-fossa Commits ------- 89a00b3 Improving deprecation message of the Twig templates directory src/Resources/views
Symfony version(s) affected: 4.2
Description
When using PHP templates instead of Twig templates, you must store them in
src/Resources/views/
. However, if you do that, you see a deprecation message telling you to store them intemplates/
.Is this OK or should the deprecation message only be displayed for Twig templates?
Originally reported by @nyroDev in https://twitter.com/Nyr0/status/1092901535179255808
The text was updated successfully, but these errors were encountered: