| Conditions | 3 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function load(array $config, ContainerBuilder $container): void |
||
| 22 | { |
||
| 23 | $this->processConfiguration($this->getConfiguration([], $container), $config); |
||
|
|
|||
| 24 | $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
||
| 25 | |||
| 26 | $env = $container->getParameter("kernel.environment"); |
||
| 27 | |||
| 28 | $container->setParameter('gateway_factory_class', |
||
| 29 | $env === 'test' ? |
||
| 30 | MockedPayseraGatewayFactory::class : PayseraGatewayFactory::class |
||
| 31 | ); |
||
| 32 | $container->setParameter('gateway_api_class_mocked', |
||
| 33 | $env === 'test' ? |
||
| 34 | true : false |
||
| 35 | ); |
||
| 36 | |||
| 37 | $loader->load('services.xml'); |
||
| 38 | } |
||
| 40 |