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.
__construct(array $allowedMethods, string $message = null, int $code, Exception $previous = null) | ||
array | getAllowedMethods() Gets the allowed HTTP methods. |
array | $allowedMethods | |
string | $message | |
int | $code | |
Exception | $previous |
Gets the allowed HTTP methods.
array |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Routing/Exception/MethodNotAllowedException.html