Class AbstractHandler
Base Error Handler
Enhanced version Slim's error handlers.
It outputs messages in either JSON, XML or HTML based on the Accept header.
- Charcoal\App\Handler\AbstractHandler implements Charcoal\Config\ConfigurableInterface, Charcoal\App\Handler\HandlerInterface, Psr\Log\LoggerAwareInterface, Charcoal\View\ViewableInterface uses Charcoal\Config\ConfigurableTrait (not available) Psr\Log\LoggerAwareTrait (not available) Charcoal\Translator\TranslatorAwareTrait (not available) Charcoal\View\ViewableTrait (not available)
Direct known subclasses
Charcoal\App\Handler\Error, Charcoal\App\Handler\NotAllowed, Charcoal\App\Handler\NotFound, Charcoal\App\Handler\PhpError, Charcoal\App\Handler\Shutdown
public
|
|
public
|
|
public
|
|
public
|
|
public
ConfigInterface
|
|
protected
string
|
#
determineContentType( Psr\Http\Message\ServerRequestInterface $request )
Determine which content type we know about is wanted using "Accept" header |
protected
string
|
|
public
string
|
|
abstract public
string
|
|
protected
string
|
|
public
|
|
public
string
|
protected
Pimple\Container
|
$container
Container |
|
protected
string
|
$baseUrl
URL for the home page |
|
protected
array
|
$knownContentTypes
Known handled content types |
#
[
'application/json',
'application/xml',
'text/xml',
'text/html',
]
|