public function ServiceController::__construct in CAS 8
Same name and namespace in other branches
- 2.x src/Controller/ServiceController.php \Drupal\cas\Controller\ServiceController::__construct()
Constructor.
Parameters
\Drupal\cas\Service\CasHelper $cas_helper: The CAS Helper service.
\Drupal\cas\Service\CasValidator $cas_validator: The CAS Validator service.
\Drupal\cas\Service\CasUserManager $cas_user_manager: The CAS User Manager service.
\Drupal\cas\Service\CasLogout $cas_logout: The CAS Logout service.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The URL generator.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher service.
\Drupal\externalauth\ExternalAuthInterface $external_auth: The external auth service.
File
- src/
Controller/ ServiceController.php, line 130
Class
- ServiceController
- Class ServiceController.
Namespace
Drupal\cas\ControllerCode
public function __construct(CasHelper $cas_helper, CasValidator $cas_validator, CasUserManager $cas_user_manager, CasLogout $cas_logout, RequestStack $request_stack, UrlGeneratorInterface $url_generator, ConfigFactoryInterface $config_factory, MessengerInterface $messenger, EventDispatcherInterface $event_dispatcher, ExternalAuthInterface $external_auth) {
$this->casHelper = $cas_helper;
$this->casValidator = $cas_validator;
$this->casUserManager = $cas_user_manager;
$this->casLogout = $cas_logout;
$this->requestStack = $request_stack;
$this->urlGenerator = $url_generator;
$this->settings = $config_factory
->get('cas.settings');
$this->messenger = $messenger;
$this->eventDispatcher = $event_dispatcher;
$this->externalAuth = $external_auth;
}