minor #20622 [WebProfilerBundle] Dont use request attributes in RouterController (nicolas-grekas)

This PR was merged into the 2.7 branch.

Discussion
----------

[WebProfilerBundle] Dont use request attributes in RouterController

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

As spotted in #20621, it makes little sense to use request attributes here, and if it were to have, the current code is broken because the returned values here have already been processed by ValueExporter in RequestDataCollector.

Commits
-------

962325a [WebProfilerBundle] Dont use request attributes in RouterController
This commit is contained in:
Nicolas Grekas 2016-11-25 11:10:06 +01:00
commit 821e7bbe7e
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ class RouterController
$traceRequest = Request::create(
$request->getPathInfo(),
$request->getRequestServer()->get('REQUEST_METHOD'),
$request->getRequestAttributes()->all(),
array(),
$request->getRequestCookies()->all(),
array(),
$request->getRequestServer()->all()