sms-store/src/App/Command/DebugCommandFactory.php
Danyi Dávid a40ac5fb70 * debug cmd added
* auth fix
2019-05-13 22:31:46 +02:00

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