Skip to content

Commit eff6bc8

Browse files
committed
fix to use setException
1 parent 510c306 commit eff6bc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function onCoreException(GetResponseForExceptionEvent $event)
8080
try {
8181
$response = $this->startAuthentication($request, $exception);
8282
} catch (\Exception $e) {
83-
$event->set('exception', $e);
83+
$event->setException($e);
8484

8585
return;
8686
}
@@ -94,7 +94,7 @@ public function onCoreException(GetResponseForExceptionEvent $event)
9494
try {
9595
$response = $this->startAuthentication($request, new InsufficientAuthenticationException('Full authentication is required to access this resource.', $token, 0, $exception));
9696
} catch (\Exception $e) {
97-
$event->set('exception', $e);
97+
$event->setException($e);
9898

9999
return;
100100
}

0 commit comments

Comments
 (0)