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.

Properties

protected $allowedMethods

Methods

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

No description

array
getAllowedMethods()

Gets the allowed HTTP methods.

Details

at line 25
__construct(array $allowedMethods, string $message = null, int $code = 0, Exception $previous = null)

Parameters

array $allowedMethods
string $message
int $code
Exception $previous

at line 37
array getAllowedMethods()

Gets the allowed HTTP methods.

Return Value

array