public static function UserRouteEventSubscriber::getSubscribedEvents in Username Enumeration Prevention 8
File
- src/
UserRouteEventSubscriber.php, line 115
Class
- UserRouteEventSubscriber
- Modifies user-related routes to respond with 404 rather than 403.
Namespace
Drupal\username_enumeration_preventionCode
public static function getSubscribedEvents() {
$events[KernelEvents::EXCEPTION] = 'onException';
return $events;
}