File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/Symfony/Bundle/DebugBundle/DependencyInjection/Compiler Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 14
14
use Symfony \Bundle \WebProfilerBundle \EventListener \WebDebugToolbarListener ;
15
15
use Symfony \Component \DependencyInjection \Compiler \CompilerPassInterface ;
16
16
use Symfony \Component \DependencyInjection \ContainerBuilder ;
17
+ use Symfony \Component \DependencyInjection \Reference ;
17
18
18
19
/**
19
20
* Registers the file link format for the {@link \Symfony\Component\HttpKernel\DataCollector\DumpDataCollector}.
@@ -36,5 +37,9 @@ public function process(ContainerBuilder $container)
36
37
if (!$ container ->hasParameter ('web_profiler.debug_toolbar.mode ' ) || WebDebugToolbarListener::DISABLED === $ container ->getParameter ('web_profiler.debug_toolbar.mode ' )) {
37
38
$ definition ->replaceArgument (3 , null );
38
39
}
40
+
41
+ if (!$ container ->has ('.virtual_request_stack ' )) {
42
+ $ definition ->replaceArgument (3 , new Reference ('request_stack ' ));
43
+ }
39
44
}
40
45
}
You can’t perform that action at this time.
0 commit comments