Package to speed up building command line applications
composer require symplify/console-package-builder --dev
Do you want to have convention in command naming? Read The Bullet Proof Symfony Command Naming
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Kernel;
use Symplify\ConsolePackageBuilder\DependencyInjection\CompilerPass\NamelessConsoleCommandCompilerPass;
class SomeKernel extends Kernel implements CompilerPassInterface
{
public function process(ContainerBuilder $containerBuilder)
{
$containerBuilder->addCompilerPass(new NamelessConsoleCommandCompilerPass());
}
}
In case you are experiencing a bug or want to request a new feature head over to the Symplify monorepo issue tracker
The sources of this package are contained in the Symplify monorepo. We welcome contributions for this package on symplify/symplify.