Overview
  • Namespace
  • Class

Namespaces

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

Classes

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

Class AbstractHandler

Abstract Slim application handler

Direct known subclasses

Slim\Handlers\AbstractError, Slim\Handlers\NotAllowed, Slim\Handlers\NotFound

Indirect known subclasses

Slim\Handlers\Error, Slim\Handlers\PhpError

Abstract
Namespace: Slim\Handlers
Located at Handlers/AbstractHandler.php

Methods summary

protected string
# determineContentType( Psr\Http\Message\ServerRequestInterface $request )

Determine which content type we know about is wanted using Accept header

Determine which content type we know about is wanted using Accept header

Note: This method is a bare-bones implementation designed specifically for Slim's error handling requirements. Consider a fully-feature solution such as willdurand/negotiation for any other situation.

Parameters

$request

Returns

string

Properties summary

protected array $knownContentTypes

Known handled content types

Known handled content types

# [ 'application/json', 'application/xml', 'text/xml', 'text/html', ]
API documentation generated by ApiGen