8000 Don't create Twig's translation extractor service if not needed · Issue #21757 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Don't create Twig's translation extractor service if not needed #21757
Closed
@javiereguiluz

Description

@javiereguiluz
Q A
Bug report? yes
Feature request? no
BC Break report? no
Symfony version 3.x

In a Symfony app I have disabled the entire translation service. In 3.2, the production container still contained lots of translation related things, but in 3.3 everything has gone ... except for 1 service:

'twig.translation.extractor' => 'getTwig_Translation_ExtractorService',

// ...

protected function getTwig_Translation_ExtractorService()
{
    return $this->services['twig.translation.extractor'] = new \Symfony\Bridge\Twig\Translation\TwigExtractor(${($_ = isset($this->services['twig']) ? $this->services['twig'] : $this->get('twig')) && false ?: '_'});
}

Should we enable this service conditionally too? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0