You are here

class EventProxy in Search API Solr 8

Same name and namespace in other branches
  1. 4.x src/Solarium/EventDispatcher/EventProxy.php \Drupal\search_api_solr\Solarium\EventDispatcher\EventProxy

A proxy for events defined by symfony contracts

Hierarchy

  • class \Drupal\search_api_solr\Solarium\EventDispatcher\EventProxy extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of EventProxy

File

src/Solarium/EventDispatcher/EventProxy.php, line 11

Namespace

Drupal\search_api_solr\Solarium\EventDispatcher
View source
class EventProxy extends LegacyEvent {

  /**
   * @var \Symfony\Contracts\EventDispatcher\Event
   */
  protected $event;
  public function __construct(Event $event) {
    $this->event = $event;
  }
  public function isPropagationStopped() {
    return $this->event
      ->isPropagationStopped();
  }
  public function stopPropagation() {
    $this->event
      ->stopPropagation();
  }

  /**
   * Proxies all method calls to the original event.
   */
  public function __call($method, $arguments) {
    return $this->event
      ->{$method}(...$arguments);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
EventProxy::$event protected property
EventProxy::isPropagationStopped public function Returns whether further event listeners should be triggered.
EventProxy::stopPropagation public function Stops the propagation of the event to further event listeners.
EventProxy::__call public function Proxies all method calls to the original event.
EventProxy::__construct public function