public ExceptionLoggingSubscriber::on403(GetResponseForExceptionEvent $event)
Log 403 errors.
\Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process.
public function on403(GetResponseForExceptionEvent $event) { $request = $event->getRequest(); $this->logger->get('access denied')->warning('@uri', ['@uri' => $request->getRequestUri()]); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!EventSubscriber!ExceptionLoggingSubscriber.php/function/ExceptionLoggingSubscriber::on403/8.1.x