senseexception/datacollector-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

An example bundle for creating additional DataCollector extending Symfony's Profiler

Installs: 18

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:HTML

Type:symfony-bundle

1.1.0 2016-01-24 21:16 UTC

This package is auto-updated.

Last update: 2022-02-01 12:47:12 UTC


README

SensioLabsInsight

A simple example Symfony Bundle for creating additional DataCollectors and adding them to Symfony's Profiler.

This Bundle adds a new DataCollector for client ip info to the Symfony Profiler menu, panel and toolbar to show how the Profiler can be extended in Symfony. Feel free to use this as template for your own Profiler extension.

Installation

Add the following package to your composer.json

"require-dev": {
    "senseexception/datacollector-bundle": "1.1.0"
}

and add the bundle to your AppKernel.php

// app/AppKernel.php
//...
class AppKernel extends Kernel
{
    //...
    public function registerBundles()
    {
        //...
        if (in_array($this->getEnvironment(), array('dev', 'test'), true)) {
            //...
            $bundles[] = new SenseException\Bundle\DataCollectorBundle\DataCollectorBundle();
        }
        //...

        return $bundles;
    }
    //...
}