ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Default Slim application not found handler. More...
Public Member Functions | |
__invoke (ServerRequestInterface $request, ResponseInterface $response) | |
Invoke not found handler. More... | |
Protected Member Functions | |
renderPlainNotFoundOutput () | |
Render plain not found message. More... | |
renderJsonNotFoundOutput () | |
Return a response for application/json content not found. More... | |
renderXmlNotFoundOutput () | |
Return a response for xml content not found. More... | |
renderHtmlNotFoundOutput (ServerRequestInterface $request) | |
Return a response for text/html content not found. 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 found handler.
It outputs a simple message in either JSON, XML or HTML based on the Accept header.
Definition at line 22 of file NotFound.php.
Slim\Handlers\NotFound::__invoke | ( | ServerRequestInterface | $request, |
ResponseInterface | $response | ||
) |
Invoke not found handler.
ServerRequestInterface | $request | The most recent Request object |
ResponseInterface | $response | The most recent Response object |
UnexpectedValueException |
Definition at line 33 of file NotFound.php.
References $contentType, Sabre\VObject\$output, Slim\Handlers\AbstractHandler\determineContentType(), Psr\Http\Message\RequestInterface\getMethod(), Slim\Handlers\NotFound\renderHtmlNotFoundOutput(), Slim\Handlers\NotFound\renderJsonNotFoundOutput(), Slim\Handlers\NotFound\renderPlainNotFoundOutput(), Slim\Handlers\NotFound\renderXmlNotFoundOutput(), and Psr\Http\Message\ResponseInterface\withStatus().
|
protected |
Return a response for text/html content not found.
ServerRequestInterface | $request | The most recent Request object |
Definition at line 104 of file NotFound.php.
References Sabre\Event\Promise\all(), Psr\Http\Message\RequestInterface\getUri(), html(), and size.
Referenced by Slim\Handlers\NotFound\__invoke().
|
protected |
Return a response for application/json content not found.
Definition at line 82 of file NotFound.php.
Referenced by Slim\Handlers\NotFound\__invoke().
|
protected |
Render plain not found message.
Definition at line 72 of file NotFound.php.
Referenced by Slim\Handlers\NotFound\__invoke().
|
protected |
Return a response for xml content not found.
Definition at line 92 of file NotFound.php.
Referenced by Slim\Handlers\NotFound\__invoke().