vendor/payum/payum-bundle/PayumBundle.php line 12

Open in your IDE?
  1. <?php
  2. namespace Payum\Bundle\PayumBundle;
  3. use Payum\Bundle\PayumBundle\DependencyInjection\Compiler\BuildConfigsPass;
  4. use Payum\Bundle\PayumBundle\DependencyInjection\Compiler\BuildGatewayFactoriesBuilderPass;
  5. use Payum\Bundle\PayumBundle\DependencyInjection\Compiler\BuildGatewayFactoriesPass;
  6. use Payum\Bundle\PayumBundle\DependencyInjection\Compiler\BuildGatewaysPass;
  7. use Payum\Bundle\PayumBundle\DependencyInjection\Compiler\BuildStoragesPass;
  8. use Symfony\Component\HttpKernel\Bundle\Bundle;
  9. use Symfony\Component\DependencyInjection\ContainerBuilder;
  10. class PayumBundle extends Bundle
  11. {
  12. public function build(ContainerBuilder $container): void
  13. {
  14. parent::build($container);
  15. $container->addCompilerPass(new BuildConfigsPass());
  16. $container->addCompilerPass(new BuildGatewaysPass);
  17. $container->addCompilerPass(new BuildStoragesPass);
  18. $container->addCompilerPass(new BuildGatewayFactoriesPass);
  19. $container->addCompilerPass(new BuildGatewayFactoriesBuilderPass());
  20. }
  21. }