| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | public function load(array $configs, ContainerBuilder $container) |
||
| 13 | { |
||
| 14 | $configuration = $this->getConfiguration($configs, $container); |
||
| 15 | |||
| 16 | $config = null; |
||
| 17 | if (null !== $configuration) { |
||
| 18 | $config = $this->processConfiguration($configuration, $configs); |
||
| 19 | } |
||
| 20 | |||
| 21 | $container->setParameter('amp_toolbox', $config); |
||
| 22 | |||
| 23 | $loader = new YamlFileLoader( |
||
| 24 | $container, |
||
| 25 | new FileLocator(__DIR__.'/../Resources/config') |
||
| 26 | ); |
||
| 27 | $loader->load('services.yaml'); |
||
| 28 | } |
||
| 29 | } |