File tree 2 files changed +1
-3
lines changed
DependencyInjection/CompilerPass
2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 5
5
use Symfony \Component \HttpFoundation \Request ;
6
6
use Symfony \Component \HttpFoundation \Response ;
7
7
use Symfony \Component \HttpKernel \DataCollector \DataCollector ;
8
- use Symfony \Component \Stopwatch \Stopwatch ;
9
8
use Symfony \Component \Stopwatch \StopwatchEvent ;
10
9
11
10
class WebsocketDataCollector extends DataCollector
Original file line number Diff line number Diff line change 4
4
5
5
use Symfony \Component \DependencyInjection \Compiler \CompilerPassInterface ;
6
6
use Symfony \Component \DependencyInjection \ContainerBuilder ;
7
- use Symfony \Component \DependencyInjection \Definition ;
8
7
use Symfony \Component \DependencyInjection \Reference ;
9
8
10
9
class DataCollectorCompilerPass implements CompilerPassInterface
@@ -14,7 +13,7 @@ class DataCollectorCompilerPass implements CompilerPassInterface
14
13
*/
15
14
public function process (ContainerBuilder $ container )
16
15
{
17
- if (!$ container ->getParameter ('kernel.debug ' ) && $ container ->has ('debug.stopwatch ' )) {
16
+ if (!$ container ->getParameter ('kernel.debug ' ) || ! $ container ->has ('debug.stopwatch ' )) {
18
17
return ;
19
18
}
20
19
You can’t perform that action at this time.
0 commit comments