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

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