定制 dhazelett/stack-whoops 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dhazelett/stack-whoops

最新稳定版本:v1.0.2

Composer 安装命令:

composer require dhazelett/stack-whoops

包简介

Stack Middleware for Whoops, the cool kids error handler.

README 文档

README

Stack Middleware for Whoops, the cool kids error handler.

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

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

统计信息

  • 总下载量: 20
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-24