File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
DependencyInjection/CompilerPass Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 55use Symfony \Component \HttpFoundation \Request ;
66use Symfony \Component \HttpFoundation \Response ;
77use Symfony \Component \HttpKernel \DataCollector \DataCollector ;
8- use Symfony \Component \Stopwatch \Stopwatch ;
98use Symfony \Component \Stopwatch \StopwatchEvent ;
109
1110class WebsocketDataCollector extends DataCollector
Original file line number Diff line number Diff line change 44
55use Symfony \Component \DependencyInjection \Compiler \CompilerPassInterface ;
66use Symfony \Component \DependencyInjection \ContainerBuilder ;
7- use Symfony \Component \DependencyInjection \Definition ;
87use Symfony \Component \DependencyInjection \Reference ;
98
109class 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
You can’t perform that action at this time.
0 commit comments