sms-store/src/App/Command/KoinImportCommandFactory.php
2017-09-05 23:04:28 +02:00

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);
}
}