Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | 1 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null): SyncCommand |
|
20 | { |
||
21 | /** @var SyncOptions $options */ |
||
22 | 1 | $syncOptions = $container->get(SyncOptions::class); |
|
23 | 1 | $writer = new Json(); |
|
24 | |||
25 | 1 | $command = new SyncCommand($container->get(SyncService::class), $syncOptions, $writer); |
|
26 | 1 | $command->setLogger($container->get('Logger')); |
|
27 | |||
28 | 1 | return $command; |
|
29 | } |
||
31 |