Pinba bundle for symfony2
PHP
Pull request Compare This branch is 2 commits ahead of cedriclombardot:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
DependencyInjection
EventListener
Pinba
Propel
Resources/config
Tests/Pinba
CedriclombardotPinbaBundle.php
README.md
composer.json

README.md

PinbaBundle

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:           {}