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')); }