class ErrorHandler

ErrorHandler.

Constants

TYPE_DEPRECATION

Methods

static ErrorHandler
register(integer $level = null, Boolean $displayErrors = true)

Registers the error handler.

setLevel($level)

No description

setDisplayErrors($displayErrors)

No description

static 
setLogger(LoggerInterface $logger, $channel = 'deprecation')

No description

handle($level, $message, $file = 'unknown', $line, $context = array())

No description

handleFatal()

No description

Details

at line line 64
static ErrorHandler register(integer $level = null, Boolean $displayErrors = true)

Registers the error handler.

Parameters

integer $level The level at which the conversion to Exception is done (null to use the error_reporting() value and 0 to disable)
Boolean $displayErrors Display errors (for dev environment) or just log they (production usage)

Return Value

ErrorHandler The registered error handler

at line line 78
setLevel($level)

Parameters

$level

at line line 83
setDisplayErrors($displayErrors)

Parameters

$displayErrors

at line line 88
static setLogger(LoggerInterface $logger, $channel = 'deprecation')

Parameters

LoggerInterface $logger
$channel

at line line 96
handle($level, $message, $file = 'unknown', $line, $context = array())

Parameters

$level
$message
$file
$line
$context

Exceptions

ContextErrorException When error_reporting returns error

at line line 162
handleFatal()