The current user. Type:
public static AccessDeniedSubscriber
public AccessDeniedSubscriber::on
Redirects users when access is denied. Anonymous users are taken to the login page when attempting to access the user profile pages. Authenticated
public AccessDeniedSubscriber::__