for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Antidot\DevTools\Container;
use Antidot\DevTools\Application\Command\MakeConsoleCommand;
use Antidot\DevTools\Application\Service\CreateClassFile;
use Antidot\DevTools\Application\Service\GetClassNameFromFQCN;
use Antidot\DevTools\Application\Service\GetNamespaceFromFQCN;
use Antidot\DevTools\Application\Service\GetRealPathFromNamespace;
use Psr\Container\ContainerInterface;
class MakeConsoleCommandCommandFactory
{
public function __invoke(ContainerInterface $container): MakeConsoleCommand
return new MakeConsoleCommand(
$container->get(GetClassNameFromFQCN::class),
$container->get(GetNamespaceFromFQCN::class),
$container->get(GetRealPathFromNamespace::class),
$container->get(CreateClassFile::class),
(array)$container->get('config')
);
}