EventProxy.php in Search API Solr 8
File
src/Solarium/EventDispatcher/EventProxy.php
View source
<?php
namespace Drupal\search_api_solr\Solarium\EventDispatcher;
use Symfony\Component\EventDispatcher\Event as LegacyEvent;
use Symfony\Contracts\EventDispatcher\Event;
class EventProxy extends LegacyEvent {
protected $event;
public function __construct(Event $event) {
$this->event = $event;
}
public function isPropagationStopped() {
return $this->event
->isPropagationStopped();
}
public function stopPropagation() {
$this->event
->stopPropagation();
}
public function __call($method, $arguments) {
return $this->event
->{$method}(...$arguments);
}
}
Classes
Name |
Description |
EventProxy |
A proxy for events defined by symfony contracts |