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