vendor/friendsofsylius/sylius-import-export-plugin/src/FOSSyliusImportExportPlugin.php line 14

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace FriendsOfSylius\SyliusImportExportPlugin;
  4. use FriendsOfSylius\SyliusImportExportPlugin\DependencyInjection\Compiler\MessageQueuePass;
  5. use FriendsOfSylius\SyliusImportExportPlugin\DependencyInjection\Compiler\RegisterExporterPass;
  6. use FriendsOfSylius\SyliusImportExportPlugin\DependencyInjection\Compiler\RegisterImporterPass;
  7. use Sylius\Bundle\CoreBundle\Application\SyliusPluginTrait;
  8. use Symfony\Component\DependencyInjection\ContainerBuilder;
  9. use Symfony\Component\HttpKernel\Bundle\Bundle;
  10. final class FOSSyliusImportExportPlugin extends Bundle
  11. {
  12. use SyliusPluginTrait;
  13. /**
  14. * {@inheritdoc}
  15. */
  16. public function build(ContainerBuilder $container): void
  17. {
  18. parent::build($container);
  19. $container->addCompilerPass(new RegisterImporterPass());
  20. $container->addCompilerPass(new RegisterExporterPass());
  21. $container->addCompilerPass(new MessageQueuePass());
  22. }
  23. }