You are here

class TestEventDispatcher in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Tests/Fixtures/TestEventDispatcher.php \Symfony\Component\HttpKernel\Tests\Fixtures\TestEventDispatcher

Hierarchy

Expanded class hierarchy of TestEventDispatcher

File

vendor/symfony/http-kernel/Tests/Fixtures/TestEventDispatcher.php, line 17

Namespace

Symfony\Component\HttpKernel\Tests\Fixtures
View source
class TestEventDispatcher extends EventDispatcher implements TraceableEventDispatcherInterface {
  public function getCalledListeners() {
    return array(
      'foo',
    );
  }
  public function getNotCalledListeners() {
    return array(
      'bar',
    );
  }

}

Members

Namesort descending Modifiers Type Description Overrides
EventDispatcher::$listeners private property 1
EventDispatcher::$sorted private property
EventDispatcher::addListener public function Adds an event listener that listens on the specified events. Overrides EventDispatcherInterface::addListener
EventDispatcher::addSubscriber public function Adds an event subscriber. Overrides EventDispatcherInterface::addSubscriber
EventDispatcher::dispatch public function Dispatches an event to all registered listeners. Overrides EventDispatcherInterface::dispatch
EventDispatcher::doDispatch protected function Triggers the listeners of an event.
EventDispatcher::getListeners public function Gets the listeners of a specific event or all listeners sorted by descending priority. Overrides EventDispatcherInterface::getListeners 1
EventDispatcher::hasListeners public function Checks whether an event has any registered listeners. Overrides EventDispatcherInterface::hasListeners 1
EventDispatcher::removeListener public function Removes an event listener from the specified events. Overrides EventDispatcherInterface::removeListener 1
EventDispatcher::removeSubscriber public function Removes an event subscriber. Overrides EventDispatcherInterface::removeSubscriber
EventDispatcher::sortListeners private function Sorts the internal list of listeners for the given event by priority.
TestEventDispatcher::getCalledListeners public function Gets the called listeners. Overrides TraceableEventDispatcherInterface::getCalledListeners
TestEventDispatcher::getNotCalledListeners public function Gets the not called listeners. Overrides TraceableEventDispatcherInterface::getNotCalledListeners