* koin service and cli stuff added

This commit is contained in:
Danyi Dávid
2017-09-05 23:04:28 +02:00
parent 946d00ff93
commit 8184c1e07d
15 changed files with 801 additions and 55 deletions

View File

@@ -0,0 +1,17 @@
<?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);
}
}