Skip to content

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

Description

@curtchan
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions