yucadoo/graze-neighborhoods-diagnostic
Composer 安装命令:
composer require yucadoo/graze-neighborhoods-diagnostic
包简介
Exception detection strategy for Graze's transient fault handler using Neighborhoods' throwable diagnostic component.
README 文档
README
Exception detection strategy for Graze's transient fault handler using Neighborhoods' throwable diagnostic component.
Install
Via Composer
$ composer require yucadoo/graze-neighborhoods-diagnostic
Usage
use YucaDoo\GrazeNeighborhoodsDiagnostic\ExceptionDetectionStrategy as NeighborhoodsExceptionDetectionStrategy; use Graze\TransientFaultHandler\TransientFaultHandlerBuilder; /** * Obtain a preconfigured ThrowableDiagnostic builder factory. * You can use Symfony DI as explained in Neighborhoods' throwable diagnostic component. */ $throwableDiagnosticBuilderFactory = $container->get('ThrowableDiagnosticBuilderFactoryWithTailoredDecoratorStack'); $neighborhoodsExceptionDetectionStrategy = new NeighborhoodsExceptionDetectionStrategy(); $neighborhoodsExceptionDetectionStrategy->setThrowableDiagnosticBuilderFactory($throwableDiagnosticBuilderFactory); $builder = new TransientFaultHandlerBuilder(); $transientFaultHandler = $builder ->setExceptionDetectionStrategy($neighborhoodsExceptionDetectionStrategy) ... ->build();
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email hrcajuka@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-10-18