forked from Payum/PayumBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPayumBundle.php
55 lines (49 loc) · 3.22 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
<?php
namespace Payum\Bundle\PayumBundle;
use Payum\Bundle\PayumBundle\DependencyInjection\Compiler\PayumActionsPass;
use Payum\Bundle\PayumBundle\DependencyInjection\Compiler\PayumStorageExtensionsPass;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Payment\Be2BillOnsitePaymentFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Payment\Be2BillPaymentFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Payment\KlarnaCheckoutPaymentFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Payment\OfflinePaymentFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Payment\CustomPaymentFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Payment\OmnipayOnsitePaymentFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Payment\OmnipayPaymentFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Payment\PaypalExpressCheckoutNvpPaymentFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Payment\PaypalProCheckoutNvpPaymentFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Payment\PayexPaymentFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Payment\AuthorizeNetAimPaymentFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Payment\StripeCheckoutPaymentFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Payment\StripeJsPaymentFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Storage\CustomStorageFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Storage\DoctrineStorageFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Storage\FilesystemStorageFactory;
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 DependencyInjection\PayumExtension */
$extension = $container->getExtension('payum');
$extension->addPaymentFactory(new PaypalExpressCheckoutNvpPaymentFactory);
$extension->addPaymentFactory(new PaypalProCheckoutNvpPaymentFactory);
$extension->addPaymentFactory(new Be2BillPaymentFactory);
$extension->addPaymentFactory(new Be2BillOnsitePaymentFactory);
$extension->addPaymentFactory(new AuthorizeNetAimPaymentFactory);
$extension->addPaymentFactory(new PayexPaymentFactory);
$extension->addPaymentFactory(new OmnipayPaymentFactory);
$extension->addPaymentFactory(new OmnipayOnsitePaymentFactory);
$extension->addPaymentFactory(new CustomPaymentFactory);
$extension->addPaymentFactory(new OfflinePaymentFactory);
$extension->addPaymentFactory(new KlarnaCheckoutPaymentFactory);
$extension->addPaymentFactory(new StripeJsPaymentFactory);
$extension->addPaymentFactory(new StripeCheckoutPaymentFactory);
$extension->addStorageFactory(new FilesystemStorageFactory);
$extension->addStorageFactory(new DoctrineStorageFactory);
$extension->addStorageFactory(new CustomStorageFactory);
$container->addCompilerPass(new PayumActionsPass);
$container->addCompilerPass(new PayumStorageExtensionsPass);
}
}