HandleExceptions
Properties
$reservedMemory string|null
Reserved memory so that errors can be displayed properly on memory exhaustion.
Methods
bootstrap ( Application $app ) : void
Bootstrap the given application.
Parameters
- $app Application
handleError ( $level , $message , $file , $line ) : void
Report PHP deprecations, or convert PHP errors to ErrorException instances.
Parameters
- $level int
- $message string
- $file string
- $line int
handleDeprecationError ( $message , $file , $line , $level ) : void
Reports a deprecation to the "deprecations" logger.
Parameters
- $message string
- $file string
- $line int
- $level int
shouldIgnoreDeprecationErrors ( ) : bool
Determine if deprecation errors should be ignored.
ensureDeprecationLoggerIsConfigured ( ) : void
Ensure the "deprecations" logger is configured.
ensureNullLogDriverIsConfigured ( ) : void
Ensure the "null" log driver is configured.
handleException ( Throwable $e ) : void
Handle an uncaught exception from the application.
Parameters
- $e Throwable
renderForConsole ( Throwable $e ) : void
Render an exception to the console.
Parameters
- $e Throwable
renderHttpResponse ( Throwable $e ) : void
Render an exception as an HTTP response and send it.
Parameters
- $e Throwable
handleShutdown ( ) : void
Handle the PHP shutdown event.
fatalErrorFromPhpError ( array $error , $traceOffset ) : Symfony\...\FatalError
Create a new fatal error instance from an error array.
Parameters
- $error array
- $traceOffset int|null
forwardsTo ( $method ) : callable
Forward a method call to the given method if an application instance exists.
isDeprecation ( $level ) : bool
Determine if the error level is a deprecation.
Parameters
- $level int
isFatal ( $type ) : bool
Determine if the error type is fatal.
Parameters
- $type int
forgetApp ( ) : void
Clear the local application instance from memory.