forked from Payum/PayumBundle
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPayumBundle.php
62 lines (56 loc) · 3.76 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
namespace Payum\Bundle\PayumBundle;
use Payum\Bundle\PayumBundle\DependencyInjection\Compiler\BuildGatewayFactoryPass;
use Payum\Bundle\PayumBundle\DependencyInjection\Compiler\BuildRegistryPass;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Gateway\Be2BillOffsiteGatewayFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Gateway\Be2BillDirectGatewayFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Gateway\KlarnaCheckoutGatewayFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Gateway\KlarnaInvoiceGatewayFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Gateway\OfflineGatewayFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Gateway\CustomGatewayFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Gateway\OmnipayOffsiteGatewayFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Gateway\OmnipayDirectGatewayFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Gateway\PaypalExpressCheckoutNvpGatewayFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Gateway\PaypalProCheckoutNvpGatewayFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Gateway\PayexGatewayFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Gateway\AuthorizeNetAimGatewayFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Gateway\StripeCheckoutGatewayFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Gateway\StripeJsGatewayFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Storage\CustomStorageFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Storage\Propel1StorageFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Storage\Propel2StorageFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Storage\DoctrineStorageFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Storage\FilesystemStorageFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\PayumExtension;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class PayumBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
/** @var $extension PayumExtension */
$extension = $container->getExtension('payum');
$extension->addGatewayFactory(new PaypalExpressCheckoutNvpGatewayFactory);
$extension->addGatewayFactory(new PaypalProCheckoutNvpGatewayFactory);
$extension->addGatewayFactory(new Be2BillDirectGatewayFactory);
$extension->addGatewayFactory(new Be2BillOffsiteGatewayFactory);
$extension->addGatewayFactory(new AuthorizeNetAimGatewayFactory);
$extension->addGatewayFactory(new PayexGatewayFactory);
$extension->addGatewayFactory(new OmnipayDirectGatewayFactory);
$extension->addGatewayFactory(new OmnipayOffsiteGatewayFactory);
$extension->addGatewayFactory(new CustomGatewayFactory);
$extension->addGatewayFactory(new OfflineGatewayFactory);
$extension->addGatewayFactory(new KlarnaCheckoutGatewayFactory);
$extension->addGatewayFactory(new KlarnaInvoiceGatewayFactory);
$extension->addGatewayFactory(new StripeJsGatewayFactory);
$extension->addGatewayFactory(new StripeCheckoutGatewayFactory);
$extension->addStorageFactory(new FilesystemStorageFactory);
$extension->addStorageFactory(new DoctrineStorageFactory);
$extension->addStorageFactory(new CustomStorageFactory);
$extension->addStorageFactory(new Propel1StorageFactory);
$extension->addStorageFactory(new Propel2StorageFactory);
$container->addCompilerPass(new BuildRegistryPass());
$container->addCompilerPass(new BuildGatewayFactoryPass);
}
}