You are here

public function SetTimezoneController::__construct in Timezone Detect 8

SetTimezoneController constructor.

Parameters

\Symfony\Component\HttpFoundation\Request $request:

\Drupal\Core\Session\AccountProxyInterface $account:

\Psr\Log\LoggerInterface $logger:

\Drupal\Core\Access\CsrfTokenGenerator $tokenGenerator:

\Drupal\Core\Config\ConfigFactoryInterface $configFactory:

File

src/Controller/SetTimezoneController.php, line 48

Class

SetTimezoneController

Namespace

Drupal\timezone_detect\Controller

Code

public function __construct(Request $request, AccountProxyInterface $account, LoggerInterface $logger, CsrfTokenGenerator $tokenGenerator, ConfigFactoryInterface $configFactory) {
  $this->request = $request;
  $this->account = $account;
  $this->logger = $logger;
  $this->tokenGenerator = $tokenGenerator;
  $this->configFactory = $configFactory;
}