vendor/sylius/fixtures-bundle/src/SyliusFixturesBundle.php line 21

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of the Sylius package.
  4. *
  5. * (c) Sylius Sp. z o.o.
  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 Sylius\Bundle\FixturesBundle;
  12. use Sylius\Bundle\FixturesBundle\DependencyInjection\Compiler\FixtureRegistryPass;
  13. use Sylius\Bundle\FixturesBundle\DependencyInjection\Compiler\ListenerRegistryPass;
  14. use Symfony\Component\DependencyInjection\ContainerBuilder;
  15. use Symfony\Component\HttpKernel\Bundle\Bundle;
  16. final class SyliusFixturesBundle extends Bundle
  17. {
  18. public function build(ContainerBuilder $container): void
  19. {
  20. parent::build($container);
  21. $container->addCompilerPass(new FixtureRegistryPass());
  22. $container->addCompilerPass(new ListenerRegistryPass());
  23. }
  24. }