forked from Payum/PayumBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PayumBundle.php
24 lines (21 loc) · 1 KB
/
PayumBundle.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
namespace Payum\Bundle\PayumBundle;
use Payum\Bundle\PayumBundle\DependencyInjection\Compiler\BuildConfigsPass;
use Payum\Bundle\PayumBundle\DependencyInjection\Compiler\BuildGatewayFactoriesBuilderPass;
use Payum\Bundle\PayumBundle\DependencyInjection\Compiler\BuildGatewayFactoriesPass;
use Payum\Bundle\PayumBundle\DependencyInjection\Compiler\BuildGatewaysPass;
use Payum\Bundle\PayumBundle\DependencyInjection\Compiler\BuildStoragesPass;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class PayumBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new BuildConfigsPass());
$container->addCompilerPass(new BuildGatewaysPass);
$container->addCompilerPass(new BuildStoragesPass);
$container->addCompilerPass(new BuildGatewayFactoriesPass);
$container->addCompilerPass(new BuildGatewayFactoriesBuilderPass());
}
}