DoctrineFixturesBundle.php 734 B

1234567891011121314151617181920212223
  1. <?php
  2. declare(strict_types=1);
  3. namespace Doctrine\Bundle\FixturesBundle;
  4. use Doctrine\Bundle\FixturesBundle\DependencyInjection\CompilerPass\FixturesCompilerPass;
  5. use Doctrine\Bundle\FixturesBundle\DependencyInjection\CompilerPass\PurgerFactoryCompilerPass;
  6. use Symfony\Component\DependencyInjection\ContainerBuilder;
  7. use Symfony\Component\HttpKernel\Bundle\Bundle;
  8. /**
  9. * Bundle.
  10. */
  11. class DoctrineFixturesBundle extends Bundle
  12. {
  13. // phpcs:ignore SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint
  14. public function build(ContainerBuilder $container)
  15. {
  16. $container->addCompilerPass(new FixturesCompilerPass());
  17. $container->addCompilerPass(new PurgerFactoryCompilerPass());
  18. }
  19. }