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

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.  * @final since sonata-project/translation-bundle 2.7
  18.  *
  19.  * @author Nicolas Bastien <nbastien.pro@gmail.com>
  20.  */
  21. class SonataTranslationBundle extends Bundle
  22. {
  23.     /**
  24.      * @return void
  25.      */
  26.     public function build(ContainerBuilder $container)
  27.     {
  28.         parent::build($container);
  29.         $container->addCompilerPass(new GlobalVariablesCompilerPass());
  30.         $container->addCompilerPass(new AdminExtensionCompilerPass());
  31.     }
  32. }