You are here

public function CasAttributesSubscriber::__construct in CAS Attributes 8

Same name and namespace in other branches
  1. 2.x src/Subscriber/CasAttributesSubscriber.php \Drupal\cas_attributes\Subscriber\CasAttributesSubscriber::__construct()

Constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory to get module settings.

\Drupal\Core\Utility\Token $token_service: The token service for token replacement.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack to get the current request.

File

src/Subscriber/CasAttributesSubscriber.php, line 51

Class

CasAttributesSubscriber
Provides a CasAttributesSubscriber.

Namespace

Drupal\cas_attributes\Subscriber

Code

public function __construct(ConfigFactoryInterface $config_factory, Token $token_service, RequestStack $request_stack) {
  $this->settings = $config_factory
    ->get('cas_attributes.settings');
  $this->tokenService = $token_service;
  $this->requestStack = $request_stack;
}