We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 362dc16 + 8929335 commit 8b3b158Copy full SHA for 8b3b158
security/access_denied_handler.rst
@@ -210,7 +210,7 @@ configure a :ref:`kernel.exception listener <use-kernel-exception-event>`::
210
211
public function onKernelException(ExceptionEvent $event): void
212
{
213
- $exception = $event->getException();
+ $exception = $event->getThrowable();
214
if (!$exception instanceof AccessDeniedException) {
215
return;
216
}
0 commit comments