ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
InvalidMethodException.php
Go to the documentation of this file.
1<?php
9namespace Slim\Exception;
10
12
13class InvalidMethodException extends \InvalidArgumentException
14{
15 protected $request;
16
18 {
19 $this->request = $request;
20 parent::__construct(sprintf('Unsupported HTTP method "%s" provided', $method));
21 }
22
23 public function getRequest()
24 {
25 return $this->request;
26 }
27}
sprintf('%.4f', $callTime)
An exception for terminatinating execution or to throw for unit testing.
__construct(ServerRequestInterface $request, $method)
Representation of an incoming, server-side HTTP request.
Slim Framework (https://slimframework.com)