-
Bug
-
Resolution: Duplicate
-
Major
-
3.1.0-b3
-
None
Twig is a very powerful template engine but we use a bridge (symbolized by the \phpbb\template\template interface) to integrate it. So we can't really use some of the most powerful features of Twig (ie: we can't get the template himself to call the renderBlock() method so we can't really exploit the template inheritance feature).
But this issue is complicated, because if we want to use these functionality we have to know that we are using twig so either we drop the generic interface and we directly extend twig or we add a get_engine() method in the interface and we let the user manage with that.
I don't see another answer...
Btw it could be useful to add some filter and function usually defined by the TwigBridge (like path(), render() or stopwatch in a debug environment) but it's an other issue.
- duplicates
-
PHPBB-11649 Move construction of twig environment to DIC
- Unverified Fix