You are here

public function CasPreRegisterEvent::__construct in CAS 8

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

Contructor.

Parameters

\Drupal\cas\CasPropertyBag $cas_property_bag: The CasPropertyBag for context.

File

src/Event/CasPreRegisterEvent.php, line 66

Class

CasPreRegisterEvent
Class CasPreRegisterEvent.

Namespace

Drupal\cas\Event

Code

public function __construct(CasPropertyBag $cas_property_bag) {
  $this->casPropertyBag = $cas_property_bag;
  $this->drupalUsername = $cas_property_bag
    ->getUsername();
}