protected function getRequestParameters()
    {
        if ($this->request->isMethod('POST')) {
            $parameters = $this->request->request;
        } else {
            $parameters = $this->request->query;
        }

        return $parameters;
    }
protected function getRequestParameters()
    {
        if ($this->request->isMethod('POST')) {
            $parameters = $this->request->request;
        } else {
            $parameters = $this->request->query;
        }

        return $parameters;
    }
protected function getRequestParameters ( ) { if ( $ this -> request -> isMethod ( 'POST' ) ) { $ parameters = $ this -> request -> request ; } else { $ parameters = $ this -> request -> query ; } return $ parameters ; }
Returns the GET or POST parameters form the request.

@return ParameterBag
Returns the GET or POST parameters form the request .