diff options
author | Amal Raghav <amal.raghav@gmail.com> | 2011-03-19 17:06:16 +0530 |
---|---|---|
committer | Amal Raghav <amal.raghav@gmail.com> | 2011-03-19 17:08:34 +0530 |
commit | f3526dda46c18d9716a97db9fde8d105a33537ec (patch) | |
tree | 703167f96b734096420a3541df7f1a2e7b425bed /Http | |
parent | 661080cedd54d5e790fcca4447e2cd91a7fe9c83 (diff) | |
download | symfony-security-f3526dda46c18d9716a97db9fde8d105a33537ec.zip symfony-security-f3526dda46c18d9716a97db9fde8d105a33537ec.tar.gz symfony-security-f3526dda46c18d9716a97db9fde8d105a33537ec.tar.bz2 |
fix to use setException
Diffstat (limited to 'Http')
-rw-r--r-- | Http/Firewall/ExceptionListener.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Http/Firewall/ExceptionListener.php b/Http/Firewall/ExceptionListener.php index 2d1549d..eacc36f 100644 --- a/Http/Firewall/ExceptionListener.php +++ b/Http/Firewall/ExceptionListener.php @@ -80,7 +80,7 @@ class ExceptionListener try { $response = $this->startAuthentication($request, $exception); } catch (\Exception $e) { - $event->set('exception', $e); + $event->setException($e); return; } @@ -94,7 +94,7 @@ class ExceptionListener try { $response = $this->startAuthentication($request, new InsufficientAuthenticationException('Full authentication is required to access this resource.', $token, 0, $exception)); } catch (\Exception $e) { - $event->set('exception', $e); + $event->setException($e); return; } |