public function Command::setName in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Command/Command.php \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');
Parameters
string $name The command name:
Return value
Command The current instance
Throws
\InvalidArgumentException When the name is invalid
5 calls to Command::setName()
- BarBucCommand::configure in vendor/symfony/ console/ Tests/ Fixtures/ BarBucCommand.php 
- Configures the current command.
- Command::__construct in vendor/symfony/ console/ Command/ Command.php 
- Constructor.
- DbCommandBaseTester::configure in core/modules/ system/ tests/ src/ Kernel/ Scripts/ DbCommandBaseTest.php 
- Configures the current command.
- Foo4Command::configure in vendor/symfony/ console/ Tests/ Fixtures/ Foo4Command.php 
- Configures the current command.
- FooCommand::configure in vendor/symfony/ http-kernel/ Tests/ Fixtures/ ExtensionPresentBundle/ Command/ FooCommand.php 
- Configures the current command.
File
- vendor/symfony/ console/ Command/ Command.php, line 408 
Class
- Command
- Base class for all commands.
Namespace
Symfony\Component\Console\CommandCode
public function setName($name) {
  $this
    ->validateName($name);
  $this->name = $name;
  return $this;
}