diff --git a/src/Symfony/Component/Security/Http/Firewall.php b/src/Symfony/Component/Security/Http/Firewall.php index 64b345f890..f7fabbba43 100644 --- a/src/Symfony/Component/Security/Http/Firewall.php +++ b/src/Symfony/Component/Security/Http/Firewall.php @@ -85,8 +85,8 @@ class Firewall } // initiate the listener chain - $ret = $this->dispatcher->notifyUntil($event = new Event($request, 'core.security', array('request' => $request))); - if ($event->isProcessed()) { + $ret = $this->dispatcher->notifyUntil($securityEvent = new Event($request, 'core.security', array('request' => $request))); + if ($securityEvent->isProcessed()) { $event->setProcessed(); return $ret;