ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Default Slim application not allowed handler. More...
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, Slim\Handlers\AbstractHandler\determineContentType(), Psr\Http\Message\RequestInterface\getMethod(), Slim\Handlers\NotAllowed\renderHtmlNotAllowedMessage(), Slim\Handlers\NotAllowed\renderJsonNotAllowedMessage(), Slim\Handlers\NotAllowed\renderPlainOptionsMessage(), Slim\Handlers\NotAllowed\renderXmlNotAllowedMessage(), and Psr\Http\Message\ResponseInterface\withStatus().
|
protected |
Render HTML not allowed message.
array | $methods |
Definition at line 117 of file NotAllowed.php.
References $output, font, html(), Method, and size.
Referenced by Slim\Handlers\NotAllowed\__invoke().
|
protected |
Render JSON not allowed message.
array | $methods |
Definition at line 91 of file NotAllowed.php.
Referenced by Slim\Handlers\NotAllowed\__invoke().
|
protected |
Render PLAIN message for OPTIONS response.
array | $methods |
Definition at line 78 of file NotAllowed.php.
Referenced by Slim\Handlers\NotAllowed\__invoke().
|
protected |
Render XML not allowed message.
array | $methods |
Definition at line 104 of file NotAllowed.php.
Referenced by Slim\Handlers\NotAllowed\__invoke().