You are here

public function UserRequestSubscriber::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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\EntityManagerInterface $entity_manager: The entity manager.

File

core/modules/user/src/EventSubscriber/UserRequestSubscriber.php, line 44
Contains \Drupal\user\EventSubscriber\UserRequestSubscriber.

Class

UserRequestSubscriber
Updates the current user's last access time.

Namespace

Drupal\user\EventSubscriber

Code

public function __construct(AccountInterface $account, EntityManagerInterface $entity_manager) {
  $this->account = $account;
  $this->entityManager = $entity_manager;
}