Skip to content

Commit

Permalink
[WebProfilerBundle] prefixed all services with web_profiler
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Mar 30, 2011
1 parent 33ee321 commit fcea63c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -47,7 +47,7 @@ public function load(array $configs, ContainerBuilder $container)
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('toolbar.xml');

$container->getDefinition('debug.toolbar')->setArgument(1, $config['intercept_redirects']);
$container->getDefinition('web_profiler.debug.toolbar')->setArgument(1, $config['intercept_redirects']);
}
}

Expand Down
Expand Up @@ -5,11 +5,11 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

<parameters>
<parameter key="debug.toolbar.class">Symfony\Bundle\WebProfilerBundle\WebDebugToolbarListener</parameter>
<parameter key="web_profiler.debug.toolbar.class">Symfony\Bundle\WebProfilerBundle\WebDebugToolbarListener</parameter>
</parameters>

<services>
<service id="debug.toolbar" class="%debug.toolbar.class%">
<service id="web_profiler.debug.toolbar" class="%web_profiler.debug.toolbar.class%">
<tag name="kernel.listener" event="onCoreResponse" priority="-128" />
<argument type="service" id="templating.engine.twig" />
<argument /> <!-- intercept_redirects -->
Expand Down

0 comments on commit fcea63c

Please sign in to comment.