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

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

Open
curtchan opened this issue Apr 14, 2020 · 2 comments

Comments

@curtchan
Copy link

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

Fails with Twig 2.*

As hotfix you can create empty class and register it with same service name

jms_job_queue.twig.extension:
        class: App\Twig\JobQueueExtension

(note) this hotfix will let the app work, but surely it will make bundle templates throw exceptions due to missing twig functions/filters

@DGCarramona
Copy link

Created pull request #243 to fix it

@inmarelibero
Copy link

up

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

No branches or pull requests

3 participants