| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 15 | public function load(array $config, ContainerBuilder $container) |
||
| 16 | { |
||
| 17 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config/')); |
||
| 18 | $loader->load('services.yml'); |
||
| 19 | |||
| 20 | $configuration = new Configuration(); |
||
| 21 | $config = $this->processConfiguration($configuration, $config); |
||
| 22 | |||
| 23 | $container->setParameter('simple_bus_elk.logstash_namespace', $config['logstash_namespace']); |
||
| 24 | $container->setParameter('simple_bus_elk.monolog_channel', $config['monolog_channel']); |
||
| 25 | $container->setParameter('simple_bus_elk.middleware', $config['middleware']); |
||
| 26 | |||
| 27 | if ($config['middleware']) { |
||
| 28 | $loader->load('logstash.yml'); |
||
| 29 | $loader->load('middlewares.yml'); |
||
| 30 | } |
||
| 31 | } |
||
| 32 | |||
| 41 |