vendor/sonata-project/translation-bundle/src/SonataTranslationBundle.php line 24

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4.  * This file is part of the Sonata Project package.
  5.  *
  6.  * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  7.  *
  8.  * For the full copyright and license information, please view the LICENSE
  9.  * file that was distributed with this source code.
  10.  */
  11. namespace Sonata\TranslationBundle;
  12. use Sonata\TranslationBundle\DependencyInjection\Compiler\AdminExtensionCompilerPass;
  13. use Sonata\TranslationBundle\DependencyInjection\Compiler\GlobalVariablesCompilerPass;
  14. use Symfony\Component\DependencyInjection\ContainerBuilder;
  15. use Symfony\Component\HttpKernel\Bundle\Bundle;
  16. /**
  17.  * @author Nicolas Bastien <nbastien.pro@gmail.com>
  18.  */
  19. class SonataTranslationBundle extends Bundle
  20. {
  21.     /**
  22.      * {@inheritdoc}
  23.      */
  24.     public function build(ContainerBuilder $container)
  25.     {
  26.         parent::build($container);
  27.         $container->addCompilerPass(new GlobalVariablesCompilerPass());
  28.         $container->addCompilerPass(new AdminExtensionCompilerPass());
  29.     }
  30. }