protected function method($method)
    {
        if (strtolower($this->request->getMethod()) != strtolower($method)) {
            throw new MethodNotAllowedException('No matching method for HTTP method "'.$this->request->getMethod().'"');
        }
        return true;
    }
protected function method($method)
    {
        if (strtolower($this->request->getMethod()) != strtolower($method)) {
            throw new MethodNotAllowedException('No matching method for HTTP method "'.$this->request->getMethod().'"');
        }
        return true;
    }
protected function method ( $ method ) { if ( strtolower ( $ this -> request -> getMethod ( ) ) != strtolower ( $ method ) ) { throw new MethodNotAllowedException ( 'No matching method for HTTP method "' . $ this -> request -> getMethod ( ) . '"' ) ; } return true ; }
HTTP method condition must match request method
@param str $method
HTTP method condition must match request method