You are here

public function UserRouteEventSubscriber::__construct in Username Enumeration Prevention 8

File

src/UserRouteEventSubscriber.php, line 54

Class

UserRouteEventSubscriber
Modifies user-related routes to respond with 404 rather than 403.

Namespace

Drupal\username_enumeration_prevention

Code

public function __construct(RouteProviderInterface $routeProvider, EntityTypeManagerInterface $entityTypeManager, CacheBackendInterface $cache) {
  $this->routeProvider = $routeProvider;
  $this->entityTypeManager = $entityTypeManager;
  $this->cache = $cache;
}