Skip to content

Commit 8929335

Browse files
committed
Merge branch '5.1' into 5.2
* 5.1: Update access_denied_handler.rst
2 parents 6986772 + 3220498 commit 8929335

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/access_denied_handler.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ configure a :ref:`kernel.exception listener <use-kernel-exception-event>`::
210210

211211
public function onKernelException(ExceptionEvent $event): void
212212
{
213-
$exception = $event->getException();
213+
$exception = $event->getThrowable();
214214
if (!$exception instanceof AccessDeniedException) {
215215
return;
216216
}

0 commit comments

Comments
 (0)