You are here

public function AutologoutController::__construct in Automated Logout 8

Constructs an AutologoutSubscriber object.

Parameters

\Drupal\autologout\AutologoutManagerInterface $autologout: The autologout manager service.

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

File

src/Controller/AutologoutController.php, line 43

Class

AutologoutController
Returns responses for autologout module routes.

Namespace

Drupal\autologout\Controller

Code

public function __construct(AutologoutManagerInterface $autologout, TimeInterface $time) {
  $this->autoLogoutManager = $autologout;
  $this->time = $time;
}