| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 47 | 2 | public function setNullBackend(AfterContainerInitializationEvent $event): void |
|
| 48 | { |
||
| 49 | 2 | $container = $event->getContainer(); |
|
| 50 | 2 | if ($container->has(self::NULL_BACKEND_FACTORY_SERVICE_ID)) { |
|
| 51 | 1 | return; |
|
| 52 | } |
||
| 53 | |||
| 54 | 1 | $container->set(self::NULL_BACKEND_FACTORY_SERVICE_ID, new NullBackendFactory()); |
|
| 55 | 1 | } |
|
| 62 |