Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null): DbHandler |
||
17 | { |
||
18 | /** @var RecordCompleter $recordCompleter */ |
||
19 | $recordCompleter = $container->get(RecordCompleter::class); |
||
20 | |||
21 | $dbHandler = new DbHandler(fn () => _em()->getRepository(\Application\Model\Log::class)); |
||
22 | $dbHandler->pushProcessor($recordCompleter); |
||
23 | |||
24 | return $dbHandler; |
||
25 | } |
||
27 |