Skip to content
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

Symfony 4, Twig 3 and FosMessage 2 #358

Closed
vhrychenko opened this issue May 25, 2020 · 1 comment
Closed

Symfony 4, Twig 3 and FosMessage 2 #358

vhrychenko opened this issue May 25, 2020 · 1 comment
Labels

Comments

@vhrychenko
Copy link

Hi.
I've upgraded my Symfony project from 3 to 4 and I faced an issue with MessageExtension class.

`In MessageExtension.php line 12:

Attempted to load class "Twig_Extension" from the global namespace.
Did you forget a "use" statement?
`

so the problem that Twig_Extension is not compatible with Twig 3, it works only for Twig 2. What I do is rewriting directly in vendor folder the code to TwigExtension base class and it works. The same for Twig_Function at lines 35-38.

How can I override it on the project level or can you push the fix as a new patch?

@hex333ham
Copy link
Collaborator

see here for info on updates - #351

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants