walczakmac / staffim-rollbar-bundle
Symfony2 的错误报告到 Rollbar 的扩展包
此包的规范仓库似乎已消失,因此包已被冻结。
v1.2.2
2015-11-16 12:05 UTC
Requires
- rollbar/rollbar: ~0.15
- symfony/event-dispatcher: ~2.4
- symfony/http-kernel: ~2.4
- symfony/security-core: ~2.4
Requires (Dev)
- phpspec/phpspec: ~2.3
- phpunit/phpunit: ~4.8
- symfony/framework-bundle: ~2.4
- symfony/security-bundle: ~2.4
README
关于
将 Rollbar 集成到您的 Symfony2 应用程序中。
安装
在您的 composer.json 中要求 staffim/rollbar-bundle 包并更新您的依赖。
$ composer require staffim/rollbar-bundle:*
将 StaffimRollbarBundle 添加到您应用程序的内核中
public function registerBundles() { $bundles = array( ... new Staffim\RollbarBundle\StaffimRollbarBundle(), ... ); ... }
配置
staffim_rollbar: # Rollbar access token access_token: ### # PHP error level (see https://php.ac.cn/manual/en/function.error-reporting.php) error_level: -1 # Values from scrub.parameters are replaced by the key for specified exceptions scrub: exceptions: - PDOException parameters: key: %key%