cedriclombardot / pinba-bundle
Pinba bundle for symfony2
Installs: 89
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 4
Open Issues: 1
Type:symfony-bundle
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-10-24 04:53:22 UTC
README
Setup
Add in your composer.json :
"require": {
"cedriclombardot/pinba-bundle": "dev-master"
}
Configure your kernel
$bundles = array( new Cedriclombardot\PinbaBundle\CedriclombardotPinbaBundle(), );
Custom script name rendering
# config.yml
pinba:
script_name_pattern: "{PATH_INFO}" # use routing synthax to inject more server params into pinba script name log
With propel
Update your 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: {}