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

Can't install with composer (Twig_Extension error) #161

Open
bastien70 opened this issue Apr 23, 2020 · 3 comments
Open

Can't install with composer (Twig_Extension error) #161

bastien70 opened this issue Apr 23, 2020 · 3 comments
Labels

Comments

@bastien70
Copy link

Hello,

I'm trying to install the bundle but when executing the cache script, I've :

In JsFormValidatorTwigExtension.php line 13:

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

image

@66Ton99
Copy link
Collaborator

66Ton99 commented Apr 23, 2020

I think it because of new Twig twigphp/Twig-extensions#243
You need use Twig less than 3.0

@bastien70
Copy link
Author

bastien70 commented Apr 24, 2020

However, my Twig version is 2.12.5 :

<p>The current version is {{ constant('Twig_Environment::VERSION') }}</p>

image

@66Ton99
Copy link
Collaborator

66Ton99 commented Apr 24, 2020

https://github.com/twigphp/Twig/blob/v2.12.5/lib/Twig/Extension.php - you need turn on compatibility for this

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