Skip to content

Commit 460e74d

Browse files
author
Johann Saunier
committed
Fix #88
1 parent 9590719 commit 460e74d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

DataCollector/WebsocketDataCollector.php

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Symfony\Component\HttpFoundation\Request;
66
use Symfony\Component\HttpFoundation\Response;
77
use Symfony\Component\HttpKernel\DataCollector\DataCollector;
8-
use Symfony\Component\Stopwatch\Stopwatch;
98
use Symfony\Component\Stopwatch\StopwatchEvent;
109

1110
class WebsocketDataCollector extends DataCollector

DependencyInjection/CompilerPass/DataCollectorCompilerPass.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
66
use Symfony\Component\DependencyInjection\ContainerBuilder;
7-
use Symfony\Component\DependencyInjection\Definition;
87
use Symfony\Component\DependencyInjection\Reference;
98

109
class DataCollectorCompilerPass implements CompilerPassInterface
@@ -14,7 +13,7 @@ class DataCollectorCompilerPass implements CompilerPassInterface
1413
*/
1514
public function process(ContainerBuilder $container)
1615
{
17-
if (!$container->getParameter('kernel.debug') && $container->has('debug.stopwatch')) {
16+
if (!$container->getParameter('kernel.debug') || !$container->has('debug.stopwatch')) {
1817
return;
1918
}
2019

0 commit comments

Comments
 (0)