| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 8 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | 1 | public function register(Container $container): void |
|
| 20 | { |
||
| 21 | 1 | $logger = $container->get(LoggerInterface::class); |
|
| 22 | 1 | $dispatcher = $container->get(EventDispatcherInterface::class); |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @psalm-suppress InaccessibleMethod |
||
| 26 | */ |
||
| 27 | 1 | $container->setMultiple( |
|
| 28 | [ |
||
| 29 | // interfaces overriding |
||
| 30 | 1 | LoggerInterface::class => static function (ContainerInterface $container) use ($logger) { |
|
| 31 | 1 | return new LoggerInterfaceProxy($logger, $container->get(LogCollector::class)); |
|
| 32 | 1 | }, |
|
| 33 | 1 | EventDispatcherInterface::class => static function (ContainerInterface $container) use ($dispatcher) { |
|
| 34 | 1 | return new EventDispatcherInterfaceProxy($dispatcher, $container->get(EventCollector::class)); |
|
| 35 | 1 | }, |
|
| 40 |