protected function handleInvalidMethod($method)
    {
        $emptyResponse = new Response();
        $emptyResponse->setHeader("HTTP/1.1 405 Method $method Not Allowed", false);
        $emptyResponse->setHeader("Allow", implode(", ", $this->getSupportedHttpMethods()));

        throw new ForceResponseException($emptyResponse);
    }
protected function handleInvalidMethod($method)
    {
        $emptyResponse = new Response();
        $emptyResponse->setHeader("HTTP/1.1 405 Method $method Not Allowed", false);
        $emptyResponse->setHeader("Allow", implode(", ", $this->getSupportedHttpMethods()));

        throw new ForceResponseException($emptyResponse);
    }
protected function handleInvalidMethod ( $ method ) { $ emptyResponse = new Response ( ) ; $ emptyResponse -> setHeader ( "HTTP/1.1 405 Method $method Not Allowed" , false ) ; $ emptyResponse -> setHeader ( "Allow" , implode ( ", " , $ this -> getSupportedHttpMethods ( ) ) ) ; throw new ForceResponseException ( $ emptyResponse ) ; }
Override to handle the case where an HTTP method is unsupported.

This should throw a ForceResponseException

@param $method
@throws \Rhubarb\Crown\Exceptions\ForceResponseException
Override to handle the case where an HTTP method is unsupported .