cedriclombardot / pinba-bundle
为 symfony2 的 Pinba 扩展包
dev-master
2013-02-22 15:45 UTC
Requires
- symfony/symfony: 2.1.*
Suggests
- propel/propel1: Use propel to query your db an alayse queries perf with pinba
This package is auto-updated.
Last update: 2024-09-24 04:38:35 UTC
README
设置
在您的 composer.json 中添加
"require": {
"cedriclombardot/pinba-bundle": "dev-master"
}
配置您的 kernel
$bundles = array( new Cedriclombardot\PinbaBundle\CedriclombardotPinbaBundle(), );
自定义脚本名称渲染
# config.yml
pinba:
script_name_pattern: "{PATH_INFO}" # use routing synthax to inject more server params into pinba script name log
与 propel 一起使用
更新您的 config.yml
propel:
dbal:
connections:
default:
classname: "Cedriclombardot\\PinbaBundle\\Propel\\PinbaPropelPDO"
driver: %database_driver%
user: %database_user%
password: %database_password%
dsn: %database_driver%:host=%database_host%;dbname=%database_name%;port=%database_port%;charset=UTF8
options: {}
attributes: {}