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

  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.     public function build(ContainerBuilder $container): void
  19.     {
  20.         parent::build($container);
  21.         $container->addCompilerPass(
  22.             new RegisterTagServicesPass(
  23.                 'fidry_alice_data_fixtures.doctrine.persister_loader',
  24.                 'fidry_alice_data_fixtures.processor'
  25.             )
  26.         );
  27.         $container->addCompilerPass(
  28.             new RegisterTagServicesPass(
  29.                 'fidry_alice_data_fixtures.doctrine_mongodb.persister_loader',
  30.                 'fidry_alice_data_fixtures.processor'
  31.             )
  32.         );
  33.         $container->addCompilerPass(
  34.             new RegisterTagServicesPass(
  35.                 'fidry_alice_data_fixtures.doctrine_phpcr.persister_loader',
  36.                 'fidry_alice_data_fixtures.processor'
  37.             )
  38.         );
  39.         $container->addCompilerPass(
  40.             new RegisterTagServicesPass(
  41.                 'fidry_alice_data_fixtures.eloquent.persister_loader',
  42.                 'fidry_alice_data_fixtures.processor'
  43.             )
  44.         );
  45.         $container->addCompilerPass(new DeprecateServicesPass());
  46.     }
  47. }