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

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Symfony MakerBundle package.
  4.  *
  5.  * (c) Fabien Potencier <[email protected]>
  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\Component\DependencyInjection\Compiler\PassConfig;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. use Symfony\Component\HttpKernel\Bundle\Bundle;
  15. /**
  16.  * @author Javier Eguiluz <[email protected]>
  17.  * @author Ryan Weaver <[email protected]>
  18.  */
  19. class MakerBundle extends Bundle
  20. {
  21.     public function build(ContainerBuilder $container)
  22.     {
  23.         // add a priority so we run before the core command pass
  24.         $container->addCompilerPass(new MakeCommandRegistrationPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION10);
  25.     }
  26. }