protected function initializeActionMethodArguments()
    {
        if ($this->getOriginalRequest()->getControllerActionName() === 'index') {
            switch ($this->request->getHttpRequest()->getMethod()) {
                case 'POST':
                case 'PUT':
                    $arguments = $this->request->getArguments();
                    if (!isset($arguments[$this->resourceArgumentName])) {
                        $arguments[$this->resourceArgumentName] = [];
                    }
                    $arguments[$this->resourceArgumentName] = array_merge_recursive($arguments[$this->resourceArgumentName],
                        $this->extractRequestBody());
                    $this->request->setArguments($arguments);
                    break;
            }
        }
        parent::initializeActionMethodArguments();
    }
protected function initializeActionMethodArguments()
    {
        if ($this->getOriginalRequest()->getControllerActionName() === 'index') {
            switch ($this->request->getHttpRequest()->getMethod()) {
                case 'POST':
                case 'PUT':
                    $arguments = $this->request->getArguments();
                    if (!isset($arguments[$this->resourceArgumentName])) {
                        $arguments[$this->resourceArgumentName] = [];
                    }
                    $arguments[$this->resourceArgumentName] = array_merge_recursive($arguments[$this->resourceArgumentName],
                        $this->extractRequestBody());
                    $this->request->setArguments($arguments);
                    break;
            }
        }
        parent::initializeActionMethodArguments();
    }
protected function initializeActionMethodArguments ( ) { if ( $ this -> getOriginalRequest ( ) -> getControllerActionName ( ) === 'index' ) { switch ( $ this -> request -> getHttpRequest ( ) -> getMethod ( ) ) { case 'POST' : case 'PUT' : $ arguments = $ this -> request -> getArguments ( ) ; if ( ! isset ( $ arguments [ $ this -> resourceArgumentName ] ) ) { $ arguments [ $ this -> resourceArgumentName ] = [ ] ; } $ arguments [ $ this -> resourceArgumentName ] = array_merge_recursive ( $ arguments [ $ this -> resourceArgumentName ] , $ this -> extractRequestBody ( ) ) ; $ this -> request -> setArguments ( $ arguments ) ; break ; } } parent :: initializeActionMethodArguments ( ) ; }
The content of the root request is used as resource argument.

@return void
@throws \Neos\Flow\Mvc\Exception\InvalidArgumentTypeException
@see initializeArguments()
The content of the root request is used as resource argument .