gluephp/glue-whoops

Use whoops in Glue

0.1.1 2016-11-29 13:17 UTC

This package is not auto-updated.

Last update: 2024-05-08 23:28:38 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');