vendor/doctrine/doctrine-fixtures-bundle/src/DoctrineFixturesBundle.php line 14

Open in your IDE?
  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. use function dirname;
  9. class DoctrineFixturesBundle extends Bundle
  10. {
  11. /** @return void */
  12. public function build(ContainerBuilder $container)
  13. {
  14. $container->addCompilerPass(new FixturesCompilerPass());
  15. $container->addCompilerPass(new PurgerFactoryCompilerPass());
  16. }
  17. public function getPath(): string
  18. {
  19. return dirname(__DIR__);
  20. }
  21. }