You are here

public function CasValidator::__construct in CAS 8

Same name and namespace in other branches
  1. 2.x src/Service/CasValidator.php \Drupal\cas\Service\CasValidator::__construct()

Constructor.

Parameters

\GuzzleHttp\Client $http_client: The HTTP Client library.

CasHelper $cas_helper: The CAS Helper service.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.

\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The URL generator.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The EventDispatcher service.

File

src/Service/CasValidator.php, line 73

Class

CasValidator
Class CasValidator.

Namespace

Drupal\cas\Service

Code

public function __construct(Client $http_client, CasHelper $cas_helper, ConfigFactoryInterface $config_factory, UrlGeneratorInterface $url_generator, EventDispatcherInterface $event_dispatcher) {
  $this->httpClient = $http_client;
  $this->casHelper = $cas_helper;
  $this->settings = $config_factory
    ->get('cas.settings');
  $this->urlGenerator = $url_generator;
  $this->eventDispatcher = $event_dispatcher;
}