Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 13 |
CRAP Score | 2 |
Changes | 3 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
18 | 3 | public function load(array $configs, ContainerBuilder $container) |
|
19 | { |
||
20 | 3 | $configuration = new Configuration(); |
|
21 | 3 | $config = $this->processConfiguration($configuration, $configs); |
|
22 | |||
23 | 3 | $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
24 | 3 | $loader->load('services.xml'); |
|
25 | |||
26 | 3 | if ($container->getParameter('kernel.debug') === true) { |
|
27 | 3 | $loader->load('collector.xml'); |
|
28 | 3 | } |
|
29 | |||
30 | $container |
||
31 | 3 | ->getDefinition('speicher210_fastbill.api_credentials') |
|
32 | 3 | ->addArgument($config['username']) |
|
33 | 3 | ->addArgument($config['api_key']) |
|
34 | 3 | ->addArgument($config['account_hash']); |
|
35 | 3 | } |
|
36 | } |
||
37 |