forked from Payum/PayumBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PayumBundle.php
37 lines (31 loc) · 1.86 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
<?php
namespace Payum\Bundle\PayumBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Payment\CustomPaymentFactory;
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\Be2BillPaymentFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Payment\PayexPaymentFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Payment\AuthorizeNetAimPaymentFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Storage\DoctrineStorageFactory;
use Payum\Bundle\PayumBundle\DependencyInjection\Factory\Storage\FilesystemStorageFactory;
class PayumBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
/** @var $extension \Payum\Bundle\PayumBundle\DependencyInjection\PayumExtension */
$extension = $container->getExtension('payum');
$extension->addPaymentFactory(new PaypalExpressCheckoutNvpPaymentFactory);
$extension->addPaymentFactory(new PaypalProCheckoutNvpPaymentFactory);
$extension->addPaymentFactory(new Be2BillPaymentFactory);
$extension->addPaymentFactory(new AuthorizeNetAimPaymentFactory);
$extension->addPaymentFactory(new PayexPaymentFactory);
$extension->addPaymentFactory(new OmnipayPaymentFactory);
$extension->addPaymentFactory(new CustomPaymentFactory);
$extension->addStorageFactory(new FilesystemStorageFactory);
$extension->addStorageFactory(new DoctrineStorageFactory);
}
}