Overview
  • Namespace
  • Class

Namespaces

  • Slim
    • Exception
    • Handlers
      • Strategies
    • Http
    • Interfaces
      • Http

Classes

  • AbstractError
  • AbstractHandler
  • Error
  • NotAllowed
  • NotFound
  • PhpError

Class NotFound

Default Slim application not found handler.

It outputs a simple message in either JSON, XML or HTML based on the Accept header.

Slim\Handlers\AbstractHandler
Extended by Slim\Handlers\NotFound
Namespace: Slim\Handlers
Located at Handlers/NotFound.php

Methods summary

public Psr\Http\Message\ResponseInterface
# __invoke( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response )

Invoke not found handler

Invoke not found handler

Parameters

$request
The most recent Request object
$response
The most recent Response object

Returns

Psr\Http\Message\ResponseInterface

Throws

UnexpectedValueException
protected Psr\Http\Message\ResponseInterface
# renderPlainNotFoundOutput( )

Render plain not found message

Render plain not found message

Returns

Psr\Http\Message\ResponseInterface
protected Psr\Http\Message\ResponseInterface
# renderJsonNotFoundOutput( )

Return a response for application/json content not found

Return a response for application/json content not found

Returns

Psr\Http\Message\ResponseInterface
protected Psr\Http\Message\ResponseInterface
# renderXmlNotFoundOutput( )

Return a response for xml content not found

Return a response for xml content not found

Returns

Psr\Http\Message\ResponseInterface
protected Psr\Http\Message\ResponseInterface
# renderHtmlNotFoundOutput( Psr\Http\Message\ServerRequestInterface $request )

Return a response for text/html content not found

Return a response for text/html content not found

Parameters

$request
The most recent Request object

Returns

Psr\Http\Message\ResponseInterface

Methods inherited from Slim\Handlers\AbstractHandler

determineContentType()

Properties summary

Properties inherited from Slim\Handlers\AbstractHandler

$knownContentTypes

API documentation generated by ApiGen