public function MethodNotAllowedException::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/routing/Exception/MethodNotAllowedException.php \Symfony\Component\Routing\Exception\MethodNotAllowedException::__construct()
File
- vendor/
symfony/ routing/ Exception/ MethodNotAllowedException.php, line 28
Class
- MethodNotAllowedException
- The resource was found but the request method is not allowed.
Namespace
Symfony\Component\Routing\ExceptionCode
public function __construct(array $allowedMethods, $message = null, $code = 0, \Exception $previous = null) {
$this->allowedMethods = array_map('strtoupper', $allowedMethods);
parent::__construct($message, $code, $previous);
}