vendor/theofidry/alice-data-fixtures/src/Bridge/Symfony/FidryAliceDataFixturesBundle.php line 20

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Fidry\AliceDataFixtures package.
  4.  *
  5.  * (c) Théo FIDRY <[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. declare(strict_types=1);
  11. namespace Fidry\AliceDataFixtures\Bridge\Symfony;
  12. use Fidry\AliceDataFixtures\Bridge\Symfony\DependencyInjection\Compiler\RegisterTagServicesPass;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. use Symfony\Component\HttpKernel\Bundle\Bundle;
  15. final class FidryAliceDataFixturesBundle extends Bundle
  16. {
  17.     /**
  18.      * @inheritdoc
  19.      */
  20.     public function build(ContainerBuilder $container)
  21.     {
  22.         parent::build($container);
  23.         $container->addCompilerPass(
  24.             new RegisterTagServicesPass(
  25.                 'fidry_alice_data_fixtures.doctrine.persister_loader',
  26.                 'fidry_alice_data_fixtures.processor'
  27.             )
  28.         );
  29.         $container->addCompilerPass(
  30.             new RegisterTagServicesPass(
  31.                 'fidry_alice_data_fixtures.doctrine_mongodb.persister_loader',
  32.                 'fidry_alice_data_fixtures.processor'
  33.             )
  34.         );
  35.         $container->addCompilerPass(
  36.             new RegisterTagServicesPass(
  37.                 'fidry_alice_data_fixtures.doctrine_phpcr.persister_loader',
  38.                 'fidry_alice_data_fixtures.processor'
  39.             )
  40.         );
  41.         $container->addCompilerPass(
  42.             new RegisterTagServicesPass(
  43.                 'fidry_alice_data_fixtures.eloquent.persister_loader',
  44.                 'fidry_alice_data_fixtures.processor'
  45.             )
  46.         );
  47.     }
  48. }