public function AutologoutSubscriber::__construct in Automated Logout 8
Constructs an AutologoutSubscriber object.
Parameters
\Drupal\autologout\AutologoutManagerInterface $autologout: The autologout manager service.
\Drupal\Core\Session\AccountInterface $account: The user account service.
\Drupal\Core\Config\ConfigFactory $config: The Config service.
\Drupal\Core\Theme\ThemeManager $theme: The theme manager service.
\Drupal\Component\Datetime\TimeInterface $time: The time service.
\Symfony\Component\HttpFoundation\RequestStack $requestStack: The request stack service.
File
- src/
EventSubscriber/ AutologoutSubscriber.php, line 78
Class
- AutologoutSubscriber
- Defines autologout Subscriber.
Namespace
Drupal\autologout\EventSubscriberCode
public function __construct(AutologoutManagerInterface $autologout, AccountInterface $account, ConfigFactory $config, ThemeManager $theme, TimeInterface $time, RequestStack $requestStack) {
$this->autoLogoutManager = $autologout;
$this->currentUser = $account;
$this->config = $config;
$this->theme = $theme;
$this->time = $time;
$this->requestStack = $requestStack;
}