Skip to content

gluephp/glue-whoops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Whoops for Glue

Use filp/whoops with gluephp/glue

Installation

Use Composer:

$ composer require gluephp/glue-whoops

Configure Whoops

$app = new Glue\App;

$app->config->override([
    'debug' => true,
]);

The debug settings isn't specifically for Whoops, but if debug is false, Whoops will be disabled since we don't want to use it in production.

Register Whoops

$app->register(
    new Glue\Whoops\ServiceProvider()
);

Get the Whoops instance

Once the service provider is registered, you can fetch the Whoops instance with:

$whoops = $app->make('Whoops\Run');

About

Whoops adapter for gluephp/glue

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages