[FrameworkBundle] fixed profiler on requests for which no route matches
This commit is contained in:
parent
1991437766
commit
bb206a7b7b
@ -91,7 +91,7 @@ class ProfilerListener
|
||||
|
||||
$profiler = $this->container->get('profiler');
|
||||
|
||||
if ($parent = $this->container->getCurrentScopedStack('request')) {
|
||||
if ($parent = $this->container->getCurrentScopedStack('request') && isset($parent['request']['profiler'])) {
|
||||
$profiler->setParent($parent['request']['profiler']->getToken());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user