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
I have also tried making my Twig_Environment class a child of the twig service, but it does not use my class, it still uses the original Twig_Environment class. The configuration that I tried (one of them) is:
Is there any way to do so? I want to avoid passing all the parameters to the constructor, as it is only a temporary solution and I do not want to interfere with the original class.
Thank you!
Regards!
The text was updated successfully, but these errors were encountered:
I am sorry, but I have to close your issue as we use GitHub issues only to discuss new features and for bug reports. For support, please refer to one of the support channels. Thank you for understanding.
Hi!
Due to twigphp/Twig#2761 , I want to override
Twig_Environment
temporarily in my Symfony application.I have tried to do so decorating the service,, with a service decoration following https://symfony.com/doc/current/service_container/service_decoration.html and with this configuration:
But it does not work.
I have also tried making my
Twig_Environment
class a child of thetwig
service, but it does not use my class, it still uses the originalTwig_Environment
class. The configuration that I tried (one of them) is:Is there any way to do so? I want to avoid passing all the parameters to the constructor, as it is only a temporary solution and I do not want to interfere with the original class.
Thank you!
Regards!
The text was updated successfully, but these errors were encountered: