Symfony2 API
Class

Symfony\Component\Routing\Exception\MethodNotAllowedException

class MethodNotAllowedException extends RuntimeException implements ExceptionInterface

The resource was found but the request method is not allowed.

This exception should trigger an HTTP 405 response in your application code.

Methods

__construct(array $allowedMethods, $message = null, $code, Exception $previous = null)

array getAllowedMethods()

Gets the allowed HTTP methods.

Details

at line 30
public __construct(array $allowedMethods, $message = null, $code, Exception $previous = null)

Parameters

array $allowedMethods
$message
$code
Exception $previous

at line 42
public array getAllowedMethods()

Gets the allowed HTTP methods.

Return Value

array