The FirePHPBundle provides simple integration FirePHP for your Symfony2 project.
Add the following lines to de /deps file
; Debugging
[FirePHPBundle]
git=git://github.com/Jehu/FirePHPBundle.git
target=/bundles/FirePHPBundle
git submodule add git://github.com/Jehu/FirePHPBundle.git vendor/bundles/FirePHPBundle
// app/AppKernel.php
public function registerBundles()
{
// ...
if (in_array($this->getEnvironment(), array('dev', 'test')) || (strpos($this->getEnvironment(), 'dev_') === 0)) {
{
// ...
$bundles[] = new FirePHPBundle\FirePHPBundle();
}
return $bundles;
}
// app/autoload.php
$loader = new UniversalClassLoader();
$loader->registerNamespaces(array(
// ...
'FirePHP' => __DIR__.'/../vendor/bundles',
));
// app/config/config.yml
// ...
fire_php: ~
For available methods see (http://www.firephp.org/HQ/Use.htm)
public function indexAction()
{
$fb = $this->get('fire_php');
$fb->log(array(1,2,3));
// ...
}