ExceptionServiceProvider
class ExceptionServiceProvider extends ServiceProvider (View source)
Properties
protected Application | $app | The application instance. |
from ServiceProvider |
protected bool | $defer | Indicates if loading of the provider is deferred. |
from ServiceProvider |
Methods
Register the service provider.
Register the package's component namespaces.
Determine the namespace for a package.
Register the exception displayers.
Register the exception handler instance.
Register the plain exception displayer.
Register the Whoops exception displayer.
Register the Whoops error display service.
Register the Whoops handler for the request.
Determine if the error provider should return JSON.
Determine if the request warrants a JSON response.
Register the "pretty" Whoops handler.
Details
void
__construct(Application $app)
Create a new service provider instance.
void
boot()
Bootstrap the application events.
void
register()
Register the service provider.
void
package(string $package, string $namespace = null, string $path = null)
Register the package's component namespaces.
string
guessPackagePath()
Guess the package path for the provider.
protected string
getPackageNamespace(string $package, string $namespace)
Determine the namespace for a package.
void
commands(array $commands)
Register the package's custom Artisan commands.
protected string
getAppViewPath(string $package)
Get the application package view path.
array
provides()
Get the services provided by the provider.
array
when()
Get the events that trigger this service provider to register.
bool
isDeferred()
Determine if the provider is deferred.
protected void
registerDisplayers()
Register the exception displayers.
protected void
registerHandler()
Register the exception handler instance.
protected void
registerPlainDisplayer()
Register the plain exception displayer.
protected void
registerDebugDisplayer()
Register the Whoops exception displayer.
protected void
registerWhoops()
Register the Whoops error display service.
protected void
registerWhoopsHandler()
Register the Whoops handler for the request.
protected bool
shouldReturnJson()
Determine if the error provider should return JSON.
protected bool
requestWantsJson()
Determine if the request warrants a JSON response.
protected void
registerPrettyWhoopsHandler()
Register the "pretty" Whoops handler.