public function CasProxyHelper::__construct in CAS 8
Same name and namespace in other branches
- 2.x src/Service/CasProxyHelper.php \Drupal\cas\Service\CasProxyHelper::__construct()
Constructor.
Parameters
\GuzzleHttp\Client $http_client: The HTTP Client library.
\Drupal\cas\Service\CasHelper $cas_helper: The CAS Helper service.
\Symfony\Component\HttpFoundation\Session\SessionInterface $session: The session manager.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\Core\Database\Connection $database_connection: The database connection.
File
- src/Service/ CasProxyHelper.php, line 70 
Class
- CasProxyHelper
- Class CasProxyHelper.
Namespace
Drupal\cas\ServiceCode
public function __construct(Client $http_client, CasHelper $cas_helper, SessionInterface $session, ConfigFactoryInterface $config_factory, Connection $database_connection) {
  $this->httpClient = $http_client;
  $this->casHelper = $cas_helper;
  $this->session = $session;
  $this->settings = $config_factory
    ->get('cas.settings');
  $this->connection = $database_connection;
}