Skip to content

Commit

Permalink
Fix the usage of FrameworkBundle in debug mode without Stopwatch
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed Jun 13, 2017
1 parent cc2363f commit 2ea26c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -647,6 +647,10 @@ private function registerDebugConfiguration(array $config, ContainerBuilder $con

$debug = $container->getParameter('kernel.debug');

if ($debug) {
$container->setParameter('debug.container.dump', '%kernel.cache_dir%/%kernel.container_class%.xml');
}

if ($debug && class_exists(Stopwatch::class)) {
$loader->load('debug.xml');
}
Expand Down
4 changes: 0 additions & 4 deletions src/Symfony/Bundle/FrameworkBundle/Resources/config/debug.xml
Expand Up @@ -4,10 +4,6 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

<parameters>
<parameter key="debug.container.dump">%kernel.cache_dir%/%kernel.container_class%.xml</parameter>
</parameters>

<services>
<defaults public="false" />

Expand Down

0 comments on commit 2ea26c1

Please sign in to comment.