* koin service and cli stuff added
This commit is contained in:
17
src/App/Command/KoinImportCommandFactory.php
Normal file
17
src/App/Command/KoinImportCommandFactory.php
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user