public function CasAttributesSubscriber::__construct in CAS Attributes 2.x
Same name and namespace in other branches
- 8 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\SubscriberCode
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;
}