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
Darn, I wrote out a whole bug report with a lot more detail than this one and then somehow it didn't submit and I lost it. I only just noticed now that I'm not at my dev box.. so here it goes again.. this time from memory.
The Symfony Best Practices templates subsection says that templates in /app should be able to have names like default/index.html.twig (no double colon syntax). This works fine until you enable another rendering engine in the FrameworkBundle configuration.
With another renderer enabled Symfony starts using the DelegatingEngine, which checks each renderer's "supports" method against the template name to determine compatibility. This is where the problem resides. In this case the TwigEngine throws an exception saying that it doesn't support names like base.html.twig (with no leading ::)
So it seems like there are kind of two problems here:
When you only have one renderer defined in the configuration the renderer::supports methods are never called, what's the point in those methods if they are only called some of the time?
The regex expression used to determine template compatibility for twig in these cases is outdated and doesn't support the current conventions.
The text was updated successfully, but these errors were encountered:
Darn, I wrote out a whole bug report with a lot more detail than this one and then somehow it didn't submit and I lost it. I only just noticed now that I'm not at my dev box.. so here it goes again.. this time from memory.
The Symfony Best Practices templates subsection says that templates in /app should be able to have names like
default/index.html.twig
(no double colon syntax). This works fine until you enable another rendering engine in the FrameworkBundle configuration.With another renderer enabled Symfony starts using the DelegatingEngine, which checks each renderer's "supports" method against the template name to determine compatibility. This is where the problem resides. In this case the TwigEngine throws an exception saying that it doesn't support names like
base.html.twig
(with no leading::
)So it seems like there are kind of two problems here:
renderer::supports
methods are never called, what's the point in those methods if they are only called some of the time?The text was updated successfully, but these errors were encountered: