Symfony\Component\Console\Application::add
Adds a command object.
If a command with the same name already exists, it will be overridden.
Signature
public function add(Command
$command )
Parameters
$command
— Symfony\Component\Console\Command\Command- A Command object
Returns
- Command
- The registered command