MethodNotAllowedException

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

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

Parameters

array $allowedMethods
$message
$code
Exception $previous

array getAllowedMethods()

Gets the allowed HTTP methods.

Return Value

array

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Component/Routing/Exception/MethodNotAllowedException.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部