You are here

public function CasUserAccessCheck::__construct in CAS 8

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

Constructs a new access checker instance.

Parameters

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

\Drupal\cas\Service\CasUserManager $cas_user_manager: The CAS user manager service.

File

src/Access/CasUserAccessCheck.php, line 38

Class

CasUserAccessCheck
Defines an access checker that restricts CAS users for certain routes.

Namespace

Drupal\cas\Access

Code

public function __construct(ConfigFactoryInterface $config_factory, CasUserManager $cas_user_manager) {
  $this->settings = $config_factory
    ->get('cas.settings');
  $this->casUserManager = $cas_user_manager;
}