Symfony\Component\Console\Command\Command::setName
Sets the name of the command.
This method can set both the namespace and the name if you separate them by a colon (:) $command->setName('foo:bar');
Signature
public function setName(string
$name )
Parameters
$name
— string- The command name
Returns
- Command
- The current instance
Errors/Exceptions
-
InvalidArgumentException
- When command name given is empty