You are here

public function ForcePasswordChangeService::__construct in Force Password Change 2.0.x

Same name and namespace in other branches
  1. 8 src/Service/ForcePasswordChangeService.php \Drupal\force_password_change\Service\ForcePasswordChangeService::__construct()

Constructs a ForcePasswordChangeService object.

Parameters

\Drupal\force_password_change\Mapper\ForcePasswordChangeMapperInterface $mapper: The force password change data mapper.

\Drupal\Core\Session\AccountProxyInterface $currentUser: The current user.

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config factory.

\Drupal\user\UserDataInterface $userData: The user data service.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

File

src/Service/ForcePasswordChangeService.php, line 65

Class

ForcePasswordChangeService

Namespace

Drupal\force_password_change\Service

Code

public function __construct(ForcePasswordChangeMapperInterface $mapper, AccountProxyInterface $currentUser, ConfigFactoryInterface $configFactory, UserDataInterface $userData, TimeInterface $time) {
  $this->mapper = $mapper;
  $this->currentUser = $currentUser;
  $this->configFactory = $configFactory;
  $this->userData = $userData;
  $this->time = $time;
}