You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
P.S.
Might be a bug, but .../_error/404.html url is looking for override templates in /src/Resources/{BUNDLE_NAME}/views/{PATH/TO/TEMPLATE.html.twig} folder.
The text was updated successfully, but these errors were encountered:
And the fact that the bundle is searched in /src/Resources/... is normal, the kernel root dir is src/ with flex (it shouldn't matter since we try to never use it).
I was just 11 days late about reporting it 😉 . Thanks for pointing me out in right directly. Will try using 3.4 branch (because release is only in november) to see how it working right now.
Uh oh!
There was an error while loading. Please reload this page.
Before Symfony Flex:
/app/Resources/views/{PATH/TO/TEMPLATE.html.twig}
app/Resources/{BUNDLE_NAME}/views/{PATH/TO/TEMPLATE.html.twig}
After Symfony Flex:
/templates/{PATH/TO/TEMPLATE.html.twig}
/Resources/{BUNDLE_NAME}/views/{PATH/TO/TEMPLATE.html.twig}
As you can see the override template path doesn't match overall path change logic made in Symfony Flex.
Proposing to look for override templates in
/templates/override/{BUNDLE_NAME}/views/{PATH/TO/TEMPLATE.html.twig}
.Right now the override folder is hardcoded in https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php#L128-L130
P.S.
Might be a bug, but
.../_error/404.html
url is looking for override templates in/src/Resources/{BUNDLE_NAME}/views/{PATH/TO/TEMPLATE.html.twig}
folder.The text was updated successfully, but these errors were encountered: