public function LogoutController::__construct in CAS 8
Same name and namespace in other branches
- 2.x src/Controller/LogoutController.php \Drupal\cas\Controller\LogoutController::__construct()
Constructor.
Parameters
\Drupal\cas\Service\CasHelper $cas_helper: The CasHelper to get the logout Url from.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The current request stack, to provide context.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Symfony\Component\Routing\Generator\UrlGeneratorInterface $url_generator: The URL generator.
File
- src/
Controller/ LogoutController.php, line 64
Class
- LogoutController
- Class LogoutController.
Namespace
Drupal\cas\ControllerCode
public function __construct(CasHelper $cas_helper, RequestStack $request_stack, ConfigFactoryInterface $config_factory, UrlGeneratorInterface $url_generator) {
$this->casHelper = $cas_helper;
$this->requestStack = $request_stack;
$this->settings = $config_factory
->get('cas.settings');
$this->urlGenerator = $url_generator;
}