vendor/symfony/maker-bundle/src/MakerBundle.php line 25

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Symfony MakerBundle package.
  4.  *
  5.  * (c) Fabien Potencier <fabien@symfony.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace Symfony\Bundle\MakerBundle;
  11. use Symfony\Bundle\MakerBundle\DependencyInjection\CompilerPass\MakeCommandRegistrationPass;
  12. use Symfony\Bundle\MakerBundle\DependencyInjection\CompilerPass\RemoveMissingParametersPass;
  13. use Symfony\Bundle\MakerBundle\DependencyInjection\CompilerPass\SetDoctrineManagerRegistryClassPass;
  14. use Symfony\Component\DependencyInjection\Compiler\PassConfig;
  15. use Symfony\Component\DependencyInjection\ContainerBuilder;
  16. use Symfony\Component\HttpKernel\Bundle\Bundle;
  17. /**
  18.  * @author Javier Eguiluz <javier.eguiluz@gmail.com>
  19.  * @author Ryan Weaver <weaverryan@gmail.com>
  20.  */
  21. class MakerBundle extends Bundle
  22. {
  23.     public function build(ContainerBuilder $container)
  24.     {
  25.         // add a priority so we run before the core command pass
  26.         $container->addCompilerPass(new MakeCommandRegistrationPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION10);
  27.         $container->addCompilerPass(new RemoveMissingParametersPass());
  28.         $container->addCompilerPass(new SetDoctrineManagerRegistryClassPass());
  29.     }
  30. }