|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Default Slim application not allowed handler. More...
Inheritance diagram for Slim\Handlers\NotAllowed:
Collaboration diagram for Slim\Handlers\NotAllowed:Public Member Functions | |
| __invoke (ServerRequestInterface $request, ResponseInterface $response, array $methods) | |
| Invoke error handler. More... | |
Protected Member Functions | |
| renderPlainOptionsMessage ($methods) | |
| Render PLAIN message for OPTIONS response. More... | |
| renderJsonNotAllowedMessage ($methods) | |
| Render JSON not allowed message. More... | |
| renderXmlNotAllowedMessage ($methods) | |
| Render XML not allowed message. More... | |
| renderHtmlNotAllowedMessage ($methods) | |
| Render HTML not allowed message. More... | |
Protected Member Functions inherited from Slim\Handlers\AbstractHandler | |
| determineContentType (ServerRequestInterface $request) | |
| Determine which content type we know about is wanted using Accept header. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Slim\Handlers\AbstractHandler | |
| $knownContentTypes | |
Default Slim application not allowed handler.
It outputs a simple message in either JSON, XML or HTML based on the Accept header.
Definition at line 22 of file NotAllowed.php.
| Slim\Handlers\NotAllowed::__invoke | ( | ServerRequestInterface | $request, |
| ResponseInterface | $response, | ||
| array | $methods | ||
| ) |
Invoke error handler.
| ServerRequestInterface | $request | The most recent Request object |
| ResponseInterface | $response | The most recent Response object |
| string[] | $methods | Allowed HTTP methods |
| UnexpectedValueException |
Definition at line 34 of file NotAllowed.php.
References $contentType, $output, $response, Slim\Handlers\AbstractHandler\determineContentType(), Psr\Http\Message\RequestInterface\getMethod(), Slim\Handlers\NotAllowed\renderHtmlNotAllowedMessage(), Slim\Handlers\NotAllowed\renderJsonNotAllowedMessage(), Slim\Handlers\NotAllowed\renderPlainOptionsMessage(), and Slim\Handlers\NotAllowed\renderXmlNotAllowedMessage().
Here is the call graph for this function:
|
protected |
Render HTML not allowed message.
| array | $methods |
Definition at line 117 of file NotAllowed.php.
References $output, html(), and Method.
Referenced by Slim\Handlers\NotAllowed\__invoke().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Render JSON not allowed message.
| array | $methods |
Definition at line 91 of file NotAllowed.php.
Referenced by Slim\Handlers\NotAllowed\__invoke().
Here is the caller graph for this function:
|
protected |
Render PLAIN message for OPTIONS response.
| array | $methods |
Definition at line 78 of file NotAllowed.php.
Referenced by Slim\Handlers\NotAllowed\__invoke().
Here is the caller graph for this function:
|
protected |
Render XML not allowed message.
| array | $methods |
Definition at line 104 of file NotAllowed.php.
Referenced by Slim\Handlers\NotAllowed\__invoke().
Here is the caller graph for this function: