vendor/sonata-project/doctrine-orm-admin-bundle/src/SonataDoctrineORMAdminBundle.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\DoctrineORMAdminBundle;
  12. use Sonata\DoctrineORMAdminBundle\DependencyInjection\Compiler\AddAuditEntityCompilerPass;
  13. use Sonata\DoctrineORMAdminBundle\DependencyInjection\Compiler\AddGuesserCompilerPass;
  14. use Sonata\DoctrineORMAdminBundle\DependencyInjection\Compiler\AddTemplatesCompilerPass;
  15. use Symfony\Component\DependencyInjection\Compiler\PassConfig;
  16. use Symfony\Component\DependencyInjection\ContainerBuilder;
  17. use Symfony\Component\HttpKernel\Bundle\Bundle;
  18. /**
  19.  * @final since sonata-project/doctrine-orm-admin-bundle 3.24
  20.  */
  21. class SonataDoctrineORMAdminBundle extends Bundle
  22. {
  23.     public function build(ContainerBuilder $container)
  24.     {
  25.         $container->addCompilerPass(new AddGuesserCompilerPass());
  26.         $container->addCompilerPass(new AddTemplatesCompilerPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, -1);
  27.         $container->addCompilerPass(new AddAuditEntityCompilerPass());
  28.     }
  29. }