Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 15 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
12 | 1 | public function load(array $configs, ContainerBuilder $container) |
|
13 | { |
||
14 | 1 | $configuration = new Configuration(); |
|
15 | 1 | $config = $this->processConfiguration($configuration, $configs); |
|
16 | |||
17 | 1 | $loader = new YamlFileLoader( |
|
18 | 1 | $container, |
|
19 | 1 | new FileLocator(__DIR__.'/../Resources/config/services') |
|
20 | ); |
||
21 | 1 | $loader->load('collectors.yaml'); |
|
22 | 1 | $loader->load('commands.yaml'); |
|
23 | 1 | $loader->load('handlers.yaml'); |
|
24 | 1 | $loader->load('providers.yaml'); |
|
25 | 1 | $loader->load('registries.yaml'); |
|
26 | 1 | $loader->load('resolvers.yaml'); |
|
27 | |||
28 | 1 | $container->setParameter('lag_smoker.mapping', $config['mapping']); |
|
29 | 1 | $container->setParameter('lag_smoker.routes', $config['routes']); |
|
30 | 1 | $container->setParameter('lag_smoker.routing', $config['routing']); |
|
31 | 1 | } |
|
38 |