From c54c7e04667cc9dd9d4f060d606660d9549aa435 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 24 Feb 2010 16:00:28 +0100 Subject: [PATCH] [Foundation] moved debug services to their own XML file --- src/Symfony/Foundation/Bundle/KernelBundle.php | 1 + src/Symfony/Foundation/Resources/config/services.xml | 6 ------ src/Symfony/Foundation/bootstrap.php | 1 + 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Symfony/Foundation/Bundle/KernelBundle.php b/src/Symfony/Foundation/Bundle/KernelBundle.php index d10e0ed84e..59a4069a99 100644 --- a/src/Symfony/Foundation/Bundle/KernelBundle.php +++ b/src/Symfony/Foundation/Bundle/KernelBundle.php @@ -37,6 +37,7 @@ class KernelBundle extends Bundle if ($container->getParameter('kernel.debug')) { + $configuration->merge($loader->load('debug.xml')); $configuration->setDefinition('event_dispatcher', $configuration->findDefinition('debug.event_dispatcher')); } diff --git a/src/Symfony/Foundation/Resources/config/services.xml b/src/Symfony/Foundation/Resources/config/services.xml index 659cb1cf1f..422c59d58e 100644 --- a/src/Symfony/Foundation/Resources/config/services.xml +++ b/src/Symfony/Foundation/Resources/config/services.xml @@ -6,7 +6,6 @@ Symfony\Foundation\EventDispatcher - Symfony\Foundation\Debug\EventDispatcher Symfony\Components\RequestHandler\RequestHandler Symfony\Components\RequestHandler\Request Symfony\Components\RequestHandler\Response @@ -19,11 +18,6 @@ - - - - - %error_handler.level% diff --git a/src/Symfony/Foundation/bootstrap.php b/src/Symfony/Foundation/bootstrap.php index 4fafc9da4f..55c9a70c6f 100644 --- a/src/Symfony/Foundation/bootstrap.php +++ b/src/Symfony/Foundation/bootstrap.php @@ -59,6 +59,7 @@ class KernelBundle extends Bundle if ($container->getParameter('kernel.debug')) { + $configuration->merge($loader->load('debug.xml')); $configuration->setDefinition('event_dispatcher', $configuration->findDefinition('debug.event_dispatcher')); }