Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public static function createService(ContainerInterface $container) |
||
23 | { |
||
24 | /** @var BaseInfo $BaseInfo */ |
||
25 | $BaseInfo = $container->get(BaseInfoRepository::class)->get(); |
||
26 | if (!empty($BaseInfo->getPhpPath())) { |
||
27 | return $container->get(ComposerProcessService::class); |
||
28 | } |
||
29 | |||
30 | return $container->get(ComposerApiService::class); |
||
31 | } |
||
32 | } |
||
33 |