| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Old Sites/enoikio/modules/cas/src/Event/ |
Upload File : |
<?php
namespace Drupal\cas\Event;
use Symfony\Component\EventDispatcher\Event;
use Drupal\cas\CasPropertyBag;
/**
* Class CasPreUserLoadEvent.
*
* The CAS module dispatches this event during the authentication process just
* before an attempt is made to find a local Drupal user account that's
* associated with the user attempting to login.
*
* Subscribers to this event can:
* - Alter the CAS username that is used when looking up an existing Drupal
* user account.
*/
class CasPreUserLoadEvent extends Event {
/**
* Store the CAS property bag.
*
* @var \Drupal\cas\CasPropertyBag
* The CasPropertyBag for context.
*/
protected $casPropertyBag;
/**
* Constructor.
*
* @param \Drupal\cas\CasPropertyBag $cas_property_bag
* The CasPropertyBag of the current login cycle.
*/
public function __construct(CasPropertyBag $cas_property_bag) {
$this->casPropertyBag = $cas_property_bag;
}
/**
* CasPropertyBag getter.
*
* @return \Drupal\cas\CasPropertyBag
* The casPropertyBag property.
*/
public function getCasPropertyBag() {
return $this->casPropertyBag;
}
}