for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace PhpLightning\Console\Infrastructure;
use Gacela\Framework\DocBlockResolverAwareTrait;
use PhpLightning\Console\ConsoleFactory;
use Symfony\Component\Console\Application;
/**
* @method ConsoleFactory getFactory()
*/
final class ConsoleBootstrap extends Application
{
use DocBlockResolverAwareTrait;
* @psalm-suppress PossiblyNullArrayOffset
protected function getDefaultCommands(): array
$commands = parent::getDefaultCommands();
foreach ($this->getFactory()->getConsoleCommands() as $command) {
$commands[$command->getName()] = $command;
}
return $commands;