From 898adc6ef9c8568af45b9cc36f989f537ce3eeb5 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 25 Jun 2010 16:40:36 +0200 Subject: [PATCH] created a new collectors.xml file for a better separation --- .../DependencyInjection/WebExtension.php | 1 + .../Resources/config/collectors.xml | 34 +++++++++++++++++++ .../Resources/config/profiling.xml | 23 ------------- 3 files changed, 35 insertions(+), 23 deletions(-) create mode 100644 src/Symfony/Framework/FoundationBundle/Resources/config/collectors.xml diff --git a/src/Symfony/Framework/FoundationBundle/DependencyInjection/WebExtension.php b/src/Symfony/Framework/FoundationBundle/DependencyInjection/WebExtension.php index 05d133d261..8caf1f864f 100644 --- a/src/Symfony/Framework/FoundationBundle/DependencyInjection/WebExtension.php +++ b/src/Symfony/Framework/FoundationBundle/DependencyInjection/WebExtension.php @@ -73,6 +73,7 @@ class WebExtension extends LoaderExtension if (!$configuration->hasDefinition('profiler')) { $loader = new XmlFileLoader(__DIR__.'/../Resources/config'); $configuration->merge($loader->load('profiling.xml')); + $configuration->merge($loader->load('collectors.xml')); } } elseif ($configuration->hasDefinition('profiler')) { $configuration->getDefinition('profiling')->clearAnnotations(); diff --git a/src/Symfony/Framework/FoundationBundle/Resources/config/collectors.xml b/src/Symfony/Framework/FoundationBundle/Resources/config/collectors.xml new file mode 100644 index 0000000000..7204aeac01 --- /dev/null +++ b/src/Symfony/Framework/FoundationBundle/Resources/config/collectors.xml @@ -0,0 +1,34 @@ + + + + + + Symfony\Framework\FoundationBundle\DataCollector\ConfigDataCollector + Symfony\Framework\FoundationBundle\DataCollector\AppDataCollector + Symfony\Framework\FoundationBundle\DataCollector\TimerDataCollector + Symfony\Components\HttpKernel\Profiler\DataCollector\MemoryDataCollector + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Symfony/Framework/FoundationBundle/Resources/config/profiling.xml b/src/Symfony/Framework/FoundationBundle/Resources/config/profiling.xml index bbed4add29..05e044041a 100644 --- a/src/Symfony/Framework/FoundationBundle/Resources/config/profiling.xml +++ b/src/Symfony/Framework/FoundationBundle/Resources/config/profiling.xml @@ -10,10 +10,6 @@ %kernel.cache_dir%/profiler.db 86400 Symfony\Components\HttpKernel\Listener\Profiling - Symfony\Framework\FoundationBundle\DataCollector\ConfigDataCollector - Symfony\Framework\FoundationBundle\DataCollector\AppDataCollector - Symfony\Framework\FoundationBundle\DataCollector\TimerDataCollector - Symfony\Components\HttpKernel\Profiler\DataCollector\MemoryDataCollector @@ -33,24 +29,5 @@ - - - - - - - - - - - - - - - - - - -