You are here

public function UserLoginForm::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/user/src/Form/UserLoginForm.php \Drupal\user\Form\UserLoginForm::__construct()

Constructs a new UserLoginForm.

Parameters

\Drupal\Core\Flood\FloodInterface $flood: The flood service.

\Drupal\user\UserStorageInterface $user_storage: The user storage.

\Drupal\user\UserAuthInterface $user_auth: The user authentication object.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

File

core/modules/user/src/Form/UserLoginForm.php, line 62

Class

UserLoginForm
Provides a user login form.

Namespace

Drupal\user\Form

Code

public function __construct(FloodInterface $flood, UserStorageInterface $user_storage, UserAuthInterface $user_auth, RendererInterface $renderer) {
  $this->flood = $flood;
  $this->userStorage = $user_storage;
  $this->userAuth = $user_auth;
  $this->renderer = $renderer;
}