| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | 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.enable_simple_bus_middleware', $config['enable_simple_bus_middleware']); |
||
| 26 | |||
| 27 | if ($config['enable_simple_bus_middleware']) { |
||
| 28 | $loader->load('event_bus.yml'); |
||
| 29 | } |
||
| 30 | } |
||
| 31 | |||
| 40 |