You are here

public function Psr14Bridge::addListener in Search API Solr 4.x

Same name and namespace in other branches
  1. 8 src/Solarium/EventDispatcher/Psr14Bridge.php \Drupal\search_api_solr\Solarium\EventDispatcher\Psr14Bridge::addListener()

Overrides ContainerAwareEventDispatcher::addListener

File

src/Solarium/EventDispatcher/Psr14Bridge.php, line 30

Class

Psr14Bridge
A helper to decorate the legacy EventDispatcherInterface::dispatch().

Namespace

Drupal\search_api_solr\Solarium\EventDispatcher

Code

public function addListener($event_name, $listener, $priority = 0) {
  $this->dispatcher
    ->addListener($event_name, $listener, $priority);
}