Neos\Flow\Cli\Request::setControllerCommandName PHP Метод

setControllerCommandName() публичный Метод

Note that the command name must start with a lower case letter and is case sensitive.
public setControllerCommandName ( string $commandName ) : void
$commandName string Name of the command to execute by the controller
Результат void
    public function setControllerCommandName($commandName)
    {
        $this->controllerCommandName = $commandName;
        $this->command = null;
    }

Usage Example

 /**
  * @test
  */
 public function setControllerObjectNameAndSetControllerCommandNameUnsetTheBuiltCommandObject()
 {
     $request = new Request();
     $request->setControllerObjectName(CacheCommandController::class);
     $request->setControllerCommandName('flush');
     $request->getCommand();
     $request->setControllerObjectName('Neos\\Flow\\Command\\BeerCommandController');
     $request->setControllerCommandName('drink');
     $command = $request->getCommand();
     $this->assertEquals('neos.flow:beer:drink', $command->getCommandIdentifier());
 }
All Usage Examples Of Neos\Flow\Cli\Request::setControllerCommandName