8000 [HttpKernel] Fix identifier in request data collector · symfony/symfony@009f87f · GitHub
[go: up one dir, main page]

Skip to content

Commit 009f87f

Browse files
committed
[HttpKernel] Fix identifier in request data collector
1 parent bbe269f commit 009f87f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Component/HttpKernel/DataCollector/RequestDataCollector.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ public function collect(Request $request, Response $response, \Exception $except
147147
));
148148
}
149149
}
150+
151+
$this->data['identifier'] = $this->data['route'] ?: (is_array($this->data['controller']) ? $this->data['controller']['class'].'::'.$this->data['controller']['method'].'()' : $this->data['controller']);
150152
}
151153

152154
public function lateCollect()
@@ -263,7 +265,7 @@ public function getRoute()
263265

264266
public function getIdentifier()
265267
{
266-
return $this->data['route'] ?: (is_array($this->data['controller']) ? $this->data['controller']['class'].'::'.$this->data['controller']['method'].'()' : $this->data['controller']);
268+
return $this->data['identifier'];
267269
}
268270

269271
/**

0 commit comments

Comments
 (0)
0