W3cubDocs

/Symfony 4.1

AddConsoleCommandPass

class AddConsoleCommandPass implements CompilerPassInterface

Registers console commands.

Methods

__construct(string $commandLoaderServiceId = 'console.command_loader', string $commandTag = 'console.command')
process(ContainerBuilder $container)

You can modify the container here before it is dumped to PHP code.

Details

__construct(string $commandLoaderServiceId = 'console.command_loader', string $commandTag = 'console.command')

Parameters

string $commandLoaderServiceId
string $commandTag

process(ContainerBuilder $container)

You can modify the container here before it is dumped to PHP code.

Parameters

ContainerBuilder $container