Handler
class Handler (View source)
Methods
void
__construct(
ResponsePreparerInterface $responsePreparer,
ExceptionDisplayerInterface $plainDisplayer,
ExceptionDisplayerInterface $debugDisplayer,
bool $debug = true)
Create a new error handler instance.
void
register(
string $environment)
Register the exception / error handlers for the application.
handleError(
int $level,
string $message,
string $file = '',
int $line,
array $context = array())
Handle a PHP error for the application.
Response
void
void
handleShutdown()
Handle the PHP shutdown event.
void
void
bool
runningInConsole()
Determine if we are running in the console.
void
setDebug(
bool $debug)
Set the debug level for the handler.
Details
at line line 63
void
__construct(
ResponsePreparerInterface $responsePreparer,
ExceptionDisplayerInterface $plainDisplayer,
ExceptionDisplayerInterface $debugDisplayer,
bool $debug = true)
Create a new error handler instance.
at line line 80
void
register(
string $environment)
Register the exception / error handlers for the application.
at line line 130
handleError(
int $level,
string $message,
string $file = '',
int $line,
array $context = array())
Handle a PHP error for the application.
at line line 144
Response
handleException(
Exception $exception)
Handle an exception for the application.