private function input(ServerRequestInterface $request): array
    {
        if (! is_null($this->parser)) {

            $input = ($this->parser)($request);

            if (is_array($input)) {

                return $input;

            }

            throw new InputTypeException($input);

        }

        return array_merge(
            $request->getAttributes(),
            $request->getQueryParams(),
            $request->getParsedBody(),
            $request->getUploadedFiles()
        );
    }
private function input(ServerRequestInterface $request): array
    {
        if (! is_null($this->parser)) {

            $input = ($this->parser)($request);

            if (is_array($input)) {

                return $input;

            }

            throw new InputTypeException($input);

        }

        return array_merge(
            $request->getAttributes(),
            $request->getQueryParams(),
            $request->getParsedBody(),
            $request->getUploadedFiles()
        );
    }
private function input ( ServerRequestInterface $ request ) : array { if ( ! is_null ( $ this -> parser ) ) { $ input = ( $ this -> parser ) ( $ request ) ; if ( is_array ( $ input ) ) { return $ input ; } throw new InputTypeException ( $ input ) ; } return array_merge ( $ request -> getAttributes ( ) , $ request -> getQueryParams ( ) , $ request -> getParsedBody ( ) , $ request -> getUploadedFiles ( ) ) ; }
Return an input array from the given request using the request parser.

@param \Psr\Http\Message\ServerRequestInterface $request
@return array
@throws \Ellipse\Handlers\Exceptions\InputTypeException
Return an input array from the given request using the request parser .