You are here

public function ProtectedPagesLoginForm::__construct in Protected Pages 8

Constructs a new ProtectedPagesLoginForm.

Parameters

\Drupal\Core\Password\PasswordInterface $password: The password hashing service.

\Drupal\protected_pages\ProtectedPagesStorage $protectedPagesStorage: The protected pages storage.

\Drupal\Core\Session\AccountProxy $currentUser: The current user service.

\Drupal\Component\Datetime\TimeInterface $time: A date time instance.

File

src/Form/ProtectedPagesLoginForm.php, line 60

Class

ProtectedPagesLoginForm
Provides login screen to access protected page.

Namespace

Drupal\protected_pages\Form

Code

public function __construct(PasswordInterface $password, ProtectedPagesStorage $protectedPagesStorage, AccountProxy $currentUser, TimeInterface $time) {
  $this->password = $password;
  $this->protectedPagesStorage = $protectedPagesStorage;
  $this->currentUser = $currentUser;
  $this->time = $time;
}