[HttpKernel] fixed flashes in the request data collector

This commit is contained in:
Fabien Potencier 2012-02-12 14:46:42 +01:00
parent 8365675fc2
commit 574f2542df

View File

@ -72,7 +72,7 @@ class RequestDataCollector extends DataCollector
'request_attributes' => $attributes,
'response_headers' => $responseHeaders,
'session_attributes' => $request->hasSession() ? $request->getSession()->all() : array(),
'flashes' => $request->hasSession() ? $request->getSession()->getFlashBag()->all() : array(),
'flashes' => $request->hasSession() ? $request->getSession()->getFlashBag()->peekAll() : array(),
'path_info' => $request->getPathInfo(),
);
}