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 <[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\Bundle\MakerBundle\DependencyInjection\CompilerPass\RemoveMissingParametersPass;
  13. use Symfony\Bundle\MakerBundle\DependencyInjection\CompilerPass\SetDoctrineAnnotatedPrefixesPass;
  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 <[email protected]>
  19. * @author Ryan Weaver <[email protected]>
  20. */
  21. class MakerBundle extends Bundle
  22. {
  23. public function build(ContainerBuilder $container): void
  24. {
  25. // add a priority so we run before the core command pass
  26. $container->addCompilerPass(new MakeCommandRegistrationPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 10);
  27. $container->addCompilerPass(new RemoveMissingParametersPass());
  28. $container->addCompilerPass(new SetDoctrineAnnotatedPrefixesPass());
  29. }
  30. }