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