schmittjoh / JMSJobQueueBundle

Run and Schedule Symfony Console Commands as Background Jobs
http://jmsyst.com/bundles/JMSJobQueueBundle
334 stars 254 forks source link

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

Open curtchan opened 4 years ago

curtchan commented 4 years ago
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 commented 4 years ago

Created pull request #243 to fix it

inmarelibero commented 3 years ago

up