Neos\Flow\Cli\Request::setControllerObjectName PHP Method

setControllerObjectName() public method

Sets the object name of the controller
public setControllerObjectName ( string $controllerObjectName ) : void
$controllerObjectName string Object name of the controller which processes this request
return void
    public function setControllerObjectName($controllerObjectName)
    {
        $this->controllerObjectName = $controllerObjectName;
        $this->command = null;
    }

Usage Example

コード例 #1
0
 /**
  * @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::setControllerObjectName