You are here

public function CasHelper::__construct in CAS 8

Same name and namespace in other branches
  1. 2.x src/Service/CasHelper.php \Drupal\cas\Service\CasHelper::__construct()

Constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger channel factory.

\Drupal\Core\Utility\Token $token: The token service.

File

src/Service/CasHelper.php, line 150

Class

CasHelper
Class CasHelper.

Namespace

Drupal\cas\Service

Code

public function __construct(ConfigFactoryInterface $config_factory, LoggerChannelFactoryInterface $logger_factory, Token $token) {
  $this->settings = $config_factory
    ->get('cas.settings');
  $this->loggerChannel = $logger_factory
    ->get('cas');
  $this->token = $token;
}