You are here

class CasPreValidateServerConfigEvent in CAS 8

Same name and namespace in other branches
  1. 2.x src/Event/CasPreValidateServerConfigEvent.php \Drupal\cas\Event\CasPreValidateServerConfigEvent

Class CasPreValidateServerConfigEvent.

Subscribers of this event can modify the configuration of the CAS server before it's used to make the validation request. A module could do this to validate the ticket on some other server rather than the one defined in the default configuration.

Hierarchy

Expanded class hierarchy of CasPreValidateServerConfigEvent

1 file declares its use of CasPreValidateServerConfigEvent
CasValidator.php in src/Service/CasValidator.php

File

src/Event/CasPreValidateServerConfigEvent.php, line 17

Namespace

Drupal\cas\Event
View source
class CasPreValidateServerConfigEvent extends Event {

  /**
   * The CAS server config value object.
   *
   * @var \Drupal\cas\CasServerConfig
   */
  protected $casServerConfig;

  /**
   * CasPreValidateServerConfigEvent constructor.
   *
   * @param \Drupal\cas\CasServerConfig $casServerConfig
   *   The CAS server config value object.
   */
  public function __construct(CasServerConfig $casServerConfig) {
    $this->casServerConfig = $casServerConfig;
  }
  public function getCasServerConfig() {
    return $this->casServerConfig;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
CasPreValidateServerConfigEvent::$casServerConfig protected property The CAS server config value object.
CasPreValidateServerConfigEvent::getCasServerConfig public function
CasPreValidateServerConfigEvent::__construct public function CasPreValidateServerConfigEvent constructor.