linkorb/registry-whoops
最新稳定版本:v1.0.3
Composer 安装命令:
composer require linkorb/registry-whoops
包简介
Whoops Formatter and Handler: store exceptions in Registry.
README 文档
README
Whoops Formatter and Handler for Registry.
Installation
$ composer require linkorb/registry-client-php linkorb/registry-whoops
Integration
Create an instance of the Registry Store client:-
use Registry\Client\ClientBuilder; use Registry\Client\Store; $config = array( 'api_host' => 'registry.example.com', 'auth' => array('myusername', 'mypassword'), 'secure' => true, ); $store = new Store(new ClientBuilder($config), 'myaccount', 'mystore');
and an instance of the Whoops handler:-
use Registry\Whoops\Formatter\RequestExceptionFormatter; use Registry\Whoops\Handler\RegistryHandler; $handler = new RegistryHandler(new RequestExceptionFormatter, $store);
and register the Whoops handler with Whoops:-
$whoops->pushHandler($handler);
统计信息
- 总下载量: 2.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-01-13