Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | 1 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
|
16 | { |
||
17 | 1 | $logRepository = $container->get(EntityManager::class)->getRepository(Log::class); |
|
18 | 1 | $config = $container->get('config'); |
|
19 | 1 | $baseUrl = 'https://' . $config['hostname']; |
|
20 | |||
21 | 1 | return new DbWriter($logRepository, $baseUrl); |
|
22 | } |
||
24 |