gluephp / glue-whoops
Use whoops in Glue
0.1.1
2016-11-29 13:17 UTC
Requires
- php: >=5.5.0
- filp/whoops: 2.1.*
This package is not auto-updated.
Last update: 2025-01-30 02:42:23 UTC
README
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');