[FrameworkBundle] Fixed undefined $response variable in ProfilerListener

This commit is contained in:
John Wards 2011-03-17 22:39:02 +00:00 committed by Bernhard Schussek
parent cd3e184b76
commit c56a803b8a

View File

@ -79,6 +79,8 @@ class ProfilerListener
*/
public function filterCoreResponse(FilterResponseEvent $event)
{
$response = $event->getResponse();
if (null !== $this->matcher && !$this->matcher->matches($event->getRequest())) {
return $response;
}