ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
InvalidMethodException.php
Go to the documentation of this file.
1 <?php
9 namespace Slim\Exception;
10 
12 
13 class InvalidMethodException extends \InvalidArgumentException
14 {
15  protected $request;
16 
17  public function __construct(ServerRequestInterface $request, $method)
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 }
Representation of an incoming, server-side HTTP request.
Slim Framework (https://slimframework.com)
__construct(ServerRequestInterface $request, $method)