| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class MonologHandlerOverwritePass implements CompilerPassInterface |
||
| 15 | { |
||
| 16 | public function process(ContainerBuilder $container): void |
||
| 17 | { |
||
| 18 | $config = $container->getExtensionConfig('monolog_sentry'); |
||
| 19 | |||
| 20 | $configuration = new Configuration(); |
||
| 21 | $config = $this->processConfiguration($configuration, $config); |
||
| 22 | |||
| 23 | $definition = $container->findDefinition($config['monolog_sentry_handler']); |
||
| 24 | $definition->setClass(Raven::class); |
||
| 25 | } |
||
| 26 | |||
| 27 | private function processConfiguration(ConfigurationInterface $configuration, array $configs) |
||
| 32 | } |
||
| 33 | } |
||
| 34 |