You are here

public function UserRequestSubscriber::__construct in Drupal 8

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

Constructs a new UserRequestSubscriber.

Parameters

\Drupal\Core\Session\AccountInterface $account: The current user.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

File

core/modules/user/src/EventSubscriber/UserRequestSubscriber.php, line 46

Class

UserRequestSubscriber
Updates the current user's last access time.

Namespace

Drupal\user\EventSubscriber

Code

public function __construct(AccountInterface $account, EntityTypeManagerInterface $entity_type_manager) {
  $this->account = $account;
  $this->entityTypeManager = $entity_type_manager;
}