[HttpKernel] fixed route parameters storage in the Request data collector (closes #8867)
This commit is contained in:
parent
7a0eba4ddc
commit
c931eb7a53
@ -51,11 +51,15 @@ class RequestDataCollector extends DataCollector implements EventSubscriberInter
|
||||
$attributes = array();
|
||||
foreach ($request->attributes->all() as $key => $value) {
|
||||
if ('_route' == $key && is_object($value)) {
|
||||
$value = $value->getPath();
|
||||
$attributes['_route'] = $this->varToString($value->getPath());
|
||||
} elseif ('_route_params' == $key) {
|
||||
foreach ($value as $key => $v) {
|
||||
$attributes['_route_params'][$key] = $this->varToString($v);
|
||||
}
|
||||
|
||||
} else {
|
||||
$attributes[$key] = $this->varToString($value);
|
||||
}
|
||||
}
|
||||
|
||||
$content = null;
|
||||
try {
|
||||
|
Reference in New Issue
Block a user