vendor/bitbag/cms-plugin/src/BitBagSyliusCmsPlugin.php line 20

Open in your IDE?
  1. <?php
  2. /*
  3. * This file was created by developers working at BitBag
  4. * Do you need more information about us and what we do? Visit our https://bitbag.io website!
  5. * We are hiring developers from all over the world. Join us and start your new, exciting adventure and become part of us: https://bitbag.io/career
  6. */
  7. declare(strict_types=1);
  8. namespace BitBag\SyliusCmsPlugin;
  9. use BitBag\SyliusCmsPlugin\DependencyInjection\Compiler\AuthenticationManagerPolyfillPass;
  10. use BitBag\SyliusCmsPlugin\DependencyInjection\Compiler\ImporterCompilerPass;
  11. use BitBag\SyliusCmsPlugin\DependencyInjection\Compiler\MediaProviderPass;
  12. use Sylius\Bundle\CoreBundle\Application\SyliusPluginTrait;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. use Symfony\Component\HttpKernel\Bundle\Bundle;
  15. final class BitBagSyliusCmsPlugin extends Bundle
  16. {
  17. use SyliusPluginTrait;
  18. public function build(ContainerBuilder $container): void
  19. {
  20. parent::build($container);
  21. $container->addCompilerPass(new ImporterCompilerPass());
  22. $container->addCompilerPass(new MediaProviderPass());
  23. $container->addCompilerPass(new AuthenticationManagerPolyfillPass());
  24. }
  25. }