DependencyInjection/Compiler/TranslationPass.php
public function process(ContainerBuilder $container)
    {
        if (!$container->hasDefinition('jms_translation.extractor.file_extractor')) {
            return;
        }

        $extractor = new Definition('APY\DataGridBundle\Translation\ColumnTitleAnnotationTranslationExtractor');
        $extractor
            ->setPublic(false)
            ->addTag('jms_translation.file_visitor');

        $container->setDefinition('grid.translation_extractor', $extractor);
    }
public function process(ContainerBuilder $container)
    {
        if (!$container->hasDefinition('jms_translation.extractor.file_extractor')) {
            return;
        }

        $extractor = new Definition('APY\DataGridBundle\Translation\ColumnTitleAnnotationTranslationExtractor');
        $extractor
            ->setPublic(false)
            ->addTag('jms_translation.file_visitor');

        $container->setDefinition('grid.translation_extractor', $extractor);
    }
{@inheritdoc}