Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
21 | 14 | public function __invoke(ContainerInterface $container): VideoThumbGeneratorInterface |
|
22 | { |
||
23 | 14 | if ($container->has(LoggerConfigInterface::class)) { |
|
24 | 1 | $logger = $container->get(LoggerConfigInterface::class)->getLogger(); |
|
25 | } else { |
||
26 | 13 | $logger = new NullLogger(); |
|
27 | } |
||
28 | |||
29 | 14 | return new VideoThumbGenerator( |
|
30 | 14 | $container->get(FFMpegConfigInterface::class), |
|
31 | $logger |
||
32 | ); |
||
35 |