-
Notifications
You must be signed in to change notification settings - Fork 4
/
DarvinPaymentBundle.php
37 lines (33 loc) · 1.21 KB
/
DarvinPaymentBundle.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 declare(strict_types=1);
/**
* @author Darvin Studio <info@darvin-studio.ru>
* @copyright Copyright (c) 2018-2020, Darvin Studio
* @link https://www.darvin-studio.ru
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Darvin\PaymentBundle;
use Darvin\PaymentBundle\DependencyInjection\Compiler\AddBridgesPass;
use Darvin\PaymentBundle\DependencyInjection\Compiler\AddBridgePass;
use Darvin\PaymentBundle\DependencyInjection\Compiler\AddGatewayNamePass;
use Darvin\PaymentBundle\DependencyInjection\Compiler\AddReceiptFactoriesPass;
use Darvin\PaymentBundle\DependencyInjection\Compiler\AddReceiptFactoryPass;
use Darvin\PaymentBundle\DependencyInjection\Compiler\AddStatePass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Payment bundle
*/
class DarvinPaymentBundle extends Bundle
{
/**
* {@inheritDoc}
*/
public function build(ContainerBuilder $container): void
{
parent::build($container);
$container->addCompilerPass(new AddBridgesPass());
$container->addCompilerPass(new AddReceiptFactoriesPass());
}
}