[Foundation] moved debug services to their own XML file
This commit is contained in:
parent
b709367371
commit
c54c7e0466
@ -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'));
|
||||
}
|
||||
|
||||
|
@ -6,7 +6,6 @@
|
||||
|
||||
<parameters>
|
||||
<parameter key="event_dispatcher.class">Symfony\Foundation\EventDispatcher</parameter>
|
||||
<parameter key="debug.event_dispatcher.class">Symfony\Foundation\Debug\EventDispatcher</parameter>
|
||||
<parameter key="request_handler.class">Symfony\Components\RequestHandler\RequestHandler</parameter>
|
||||
<parameter key="request.class">Symfony\Components\RequestHandler\Request</parameter>
|
||||
<parameter key="response.class">Symfony\Components\RequestHandler\Response</parameter>
|
||||
@ -19,11 +18,6 @@
|
||||
<argument type="service" id="service_container" />
|
||||
</service>
|
||||
|
||||
<service id="debug.event_dispatcher" class="%debug.event_dispatcher.class%">
|
||||
<argument type="service" id="service_container" />
|
||||
<argument type="service" id="logger" on-invalid="null" />
|
||||
</service>
|
||||
|
||||
<service id="error_handler" class="%error_handler.class%">
|
||||
<argument>%error_handler.level%</argument>
|
||||
<call method="register" />
|
||||
|
@ -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'));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user