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

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

Sets the whole arguments array and therefore replaces any arguments which existed before.
public setArguments ( array $arguments ) : void
$arguments array An array of argument names and their values
Результат void
    public function setArguments(array $arguments)
    {
        $this->arguments = $arguments;
    }

Usage Example

 /**
  * Forwards the request to another command and / or CommandController.
  *
  * Request is directly transferred to the other command / controller
  * without the need for a new request.
  *
  * @param string $commandName
  * @param string $controllerObjectName
  * @param array $arguments
  * @return void
  * @throws StopActionException
  */
 protected function forward($commandName, $controllerObjectName = null, array $arguments = [])
 {
     $this->request->setDispatched(false);
     $this->request->setControllerCommandName($commandName);
     if ($controllerObjectName !== null) {
         $this->request->setControllerObjectName($controllerObjectName);
     }
     $this->request->setArguments($arguments);
     $this->arguments->removeAll();
     throw new StopActionException();
 }
All Usage Examples Of Neos\Flow\Cli\Request::setArguments