library stack-whoops
Stack Middleware for Whoops, the cool kids error handler.
dhazelett/stack-whoops
Stack Middleware for Whoops, the cool kids error handler.
- Thursday, March 29, 2018
- by dhazelett
- Repository
- 1 Watchers
- 0 Stars
- 11 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 4 Versions
- 0 % Grown
Stack-Whoops
Stack Middleware for Whoops, the cool kids error handler., (*1)
Warning!
This Middleware has no tests. I really just wanted a middleware for whoops+stack. feel free to send a PR with tests if it's that important, (*2)
Usage
use Silex\Application;
use Stack\Builder;
require_once '../app/config/bootstrap.php';
$app = new Application($config);
$stack = (new Builder)
->push('Saphire\Middleware\Whoops', [
// STRING! name of the \Whoops\Handler\* to use
'handler' => '\Whoops\Handler\PrettyPageHandler'
])
;
// Try it out
$app->get('/', function() {
throw new \Exception('Oh No!');
});
$server = $stack->resolve($app);
$response = $server->handle($request)->send();
$server->terminate($request, $response);
MIT License
dev-master
9999999-dev
Stack Middleware for Whoops, the cool kids error handler.
Sources
Download
MIT
The Development Requires
by
Devon Hazelett
stack
silex
exception
error
stack middleware
handling
whoops
v1.0.2
1.0.2.0
Stack Middleware for Whoops, the cool kids error handler.
Sources
Download
MIT
The Development Requires
by
Devon Hazelett
stack
silex
exception
error
stack middleware
handling
whoops
v1.0.1
1.0.1.0
Stack Middleware for Whoops, the cool kids error handler.
Sources
Download
MIT
The Development Requires
by
Devon Hazelett
stack
silex
exception
error
stack middleware
handling
whoops
v1.0.0
1.0.0.0
Stack Middleware for Whoops, the cool kids error handler.
Sources
Download
MIT
The Development Requires
by
Devon Hazelett
stack
silex
exception
error
stack middleware
handling
whoops