You are here

class EventProxy in Search API Solr 4.x

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

A proxy for events defined by symfony contracts to be used with older Drupal.

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 10

Namespace

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

  /**
   * @var \Symfony\Contracts\EventDispatcher\Event
   */
  protected $event;
  public function __construct($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
EventProxy::stopPropagation public function
EventProxy::__call public function Proxies all method calls to the original event.
EventProxy::__construct public function