yucadoo / graze-neighborhoods-diagnostic
使用Neighborhoods的throwable诊断组件,为Graze的瞬时故障处理器提供异常检测策略。
0.0.1
2020-10-18 14:35 UTC
Requires
- php: ~7.2
- graze/transient-fault-handler: ^0.3.1
- neighborhoods/throwable-diagnostic-component: ^2.1
Requires (Dev)
- phpunit/phpunit: >=8.0
- squizlabs/php_codesniffer: ^3.0
This package is auto-updated.
Last update: 2024-09-18 23:26:36 UTC
README
使用Neighborhoods的throwable诊断组件,为Graze的瞬时故障处理器提供异常检测策略。
安装
通过Composer
$ composer require yucadoo/graze-neighborhoods-diagnostic
用法
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();
测试
$ composer test
贡献
请参阅CONTRIBUTING和CODE_OF_CONDUCT以获取详细信息。
安全性
如果您发现任何与安全相关的问题,请通过hrcajuka@gmail.com发送电子邮件,而不是使用问题跟踪器。
致谢
许可协议
MIT许可协议(MIT)。请参阅许可文件以获取更多信息。