8000 [DI] Some Twig extensions work automatically, others don't · Issue #22849 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[DI] Some Twig extensions work automatically, others don't #22849
Closed
twigphp/Twig-extensions
#204
@javiereguiluz

Description

@javiereguiluz
Q A
Bug report? no
Feature request? no
BC Break report? no
Symfony version 3.3

In symfony/demo#562 we're updating the Symfony Demo app to 3.3.0 RC1 and all the new DI features. During the upgrade I saw this error:

Unknown "localizeddate" filter.

The reason is that I removed the original service definition for the Intl Twig extension:

app.twig.intl_extension:
    public: false
    class:  Twig_Extensions_Extension_Intl
    tags:
        - { name: twig.extension }

If I put the config back, everything works again. I think it's confusing that "auto-services" work for our own Twig extensions but not for Symfony's extensions. Is there anything we can do to improve this situation? Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0