18 lines
442 B
PHP
18 lines
442 B
PHP
<?php
|
|
|
|
namespace App\Command;
|
|
|
|
use App\Service\KoinService;
|
|
use Interop\Container\ContainerInterface;
|
|
|
|
class KoinImportCommandFactory
|
|
{
|
|
public function __invoke(ContainerInterface $container)
|
|
{
|
|
/** @var KoinService $koinService */
|
|
$koinService = $container->get(KoinService::class);
|
|
$em = $container->get('doctrine.entity_manager.orm_default');
|
|
return new KoinImportCommand($koinService, $em);
|
|
}
|
|
}
|