8000 bug #22443 [HttpKernel] Fix identifier in request data collector (ro0NL) · symfony/symfony@9296a10 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9296a10

Browse files
committed
bug #22443 [HttpKernel] Fix identifier in request data collector (ro0NL)
This PR was merged into the 3.3-dev branch. Discussion ---------- [HttpKernel] Fix identifier in request data collector | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no <!-- don't forget updating src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget updating UPGRADE-*.md files --> | Tests pass? | yes | Fixed tickets | #... <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!--highly recommended for new features--> 3.2 ![image](https://cloud.githubusercontent.com/assets/1047696/25063277/3fe8c57c-21e0-11e7-9bc3-c2edc679bd61.png) master ![image](https://cloud.githubusercontent.com/assets/1047696/25063279/536803ec-21e0-11e7-8b95-c29c6e042c4f.png) Commits ------- 009f87f [HttpKernel] Fix identifier in request data collector
2 parents ac5cfee + 009f87f commit 9296a10

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