senseexception / datacollector-bundle
An example bundle for creating additional DataCollector extending Symfony's Profiler
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:HTML
Type:symfony-bundle
Requires
- php: >=5.3.9
- symfony/framework-bundle: ^2.3|^3.0
- symfony/twig-bundle: ^2.3|^3.0
- symfony/web-profiler-bundle: ^2.3|^3.0
Requires (Dev)
- phpunit/phpunit: ~4.5
This package is auto-updated.
Last update: 2022-02-01 12:47:12 UTC
README
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; } //... }