privates['translation.extractor'] = $instance = new \Symfony\Component\Translation\Extractor\ChainExtractor(); $instance->addExtractor('php', new \Symfony\Component\Translation\Extractor\PhpExtractor()); $instance->addExtractor('twig', new \Symfony\Bridge\Twig\Translation\TwigExtractor(($container->privates['twig'] ?? $container->getTwigService()))); return $instance; } }