You are here

public function CasUserManager::__construct in CAS 8

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

CasUserManager constructor.

Parameters

\Drupal\externalauth\ExternalAuthInterface $external_auth: The external auth interface.

\Drupal\externalauth\AuthmapInterface $authmap: The authmap interface.

\Drupal\Core\Config\ConfigFactoryInterface $settings: The settings.

\Symfony\Component\HttpFoundation\Session\SessionInterface $session: The session.

\Drupal\Core\Database\Connection $database_connection: The database connection.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

\Drupal\cas\Service\CasHelper $cas_helper: The CAS helper.

\Drupal\cas\Service\CasProxyHelper $cas_proxy_helper: The CAS Proxy helper.

File

src/Service/CasUserManager.php, line 123

Class

CasUserManager
Class CasUserManager.

Namespace

Drupal\cas\Service

Code

public function __construct(ExternalAuthInterface $external_auth, AuthmapInterface $authmap, ConfigFactoryInterface $settings, SessionInterface $session, Connection $database_connection, EventDispatcherInterface $event_dispatcher, CasHelper $cas_helper, CasProxyHelper $cas_proxy_helper = NULL) {
  $this->externalAuth = $external_auth;
  $this->authmap = $authmap;
  $this->settings = $settings;
  $this->session = $session;
  $this->connection = $database_connection;
  $this->eventDispatcher = $event_dispatcher;
  $this->casHelper = $cas_helper;
  if (!$cas_proxy_helper) {
    @trigger_error('Calling CasUserManager::__construct() without the $cas_proxy_helper argument is deprecated in cas:8.x-1.6 and the $cas_proxy_helper argument will be required in cas:8.x-1.10.', E_USER_DEPRECATED);
    $cas_proxy_helper = \Drupal::service('cas.proxy_helper');
  }
  $this->casProxyHelper = $cas_proxy_helper;
}