vendor/sylius/sylius/src/Sylius/Bundle/PayumBundle/SyliusPayumBundle.php line 23

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of the Sylius package.
  4. *
  5. * (c) Paweł Jędrzejewski
  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\PayumBundle;
  12. use Sylius\Bundle\PayumBundle\DependencyInjection\Compiler\InjectContainerIntoControllersPass;
  13. use Sylius\Bundle\PayumBundle\DependencyInjection\Compiler\RegisterGatewayConfigTypePass;
  14. use Sylius\Bundle\PayumBundle\DependencyInjection\Compiler\UseTweakedDoctrineStoragePass;
  15. use Sylius\Bundle\ResourceBundle\AbstractResourceBundle;
  16. use Sylius\Bundle\ResourceBundle\SyliusResourceBundle;
  17. use Symfony\Component\DependencyInjection\ContainerBuilder;
  18. final class SyliusPayumBundle extends AbstractResourceBundle
  19. {
  20. public function getSupportedDrivers(): array
  21. {
  22. return [
  23. SyliusResourceBundle::DRIVER_DOCTRINE_ORM,
  24. ];
  25. }
  26. public function build(ContainerBuilder $container): void
  27. {
  28. parent::build($container);
  29. $container->addCompilerPass(new InjectContainerIntoControllersPass());
  30. $container->addCompilerPass(new RegisterGatewayConfigTypePass());
  31. $container->addCompilerPass(new UseTweakedDoctrineStoragePass());
  32. }
  33. }