public function CasRedirector::__construct in CAS 8
Same name and namespace in other branches
- 2.x src/Service/CasRedirector.php \Drupal\cas\Service\CasRedirector::__construct()
CasRedirector constructor.
Parameters
\Drupal\cas\Service\CasHelper $cas_helper: The CasHelper service.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The EventDispatcher service.
\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The URL generator service.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.
File
- src/
Service/ CasRedirector.php, line 62
Class
- CasRedirector
- Class CasRedirector.
Namespace
Drupal\cas\ServiceCode
public function __construct(CasHelper $cas_helper, EventDispatcherInterface $event_dispatcher, UrlGeneratorInterface $url_generator, ConfigFactoryInterface $config_factory) {
$this->casHelper = $cas_helper;
$this->eventDispatcher = $event_dispatcher;
$this->urlGenerator = $url_generator;
$this->settings = $config_factory
->get('cas.settings');
}