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 6986772 + 3220498 commit 8929335Copy full SHA for 8929335
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