You are here

class TestEventSubscriberWithMultipleListeners in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/event-dispatcher/Tests/AbstractEventDispatcherTest.php \Symfony\Component\EventDispatcher\Tests\TestEventSubscriberWithMultipleListeners

Hierarchy

Expanded class hierarchy of TestEventSubscriberWithMultipleListeners

File

vendor/symfony/event-dispatcher/Tests/AbstractEventDispatcherTest.php, line 373

Namespace

Symfony\Component\EventDispatcher\Tests
View source
class TestEventSubscriberWithMultipleListeners implements EventSubscriberInterface {
  public static function getSubscribedEvents() {
    return array(
      'pre.foo' => array(
        array(
          'preFoo1',
        ),
        array(
          'preFoo2',
          10,
        ),
      ),
    );
  }

}

Members

Namesort descending Modifiers Type Description Overrides
TestEventSubscriberWithMultipleListeners::getSubscribedEvents public static function Returns an array of event names this subscriber wants to listen to. Overrides EventSubscriberInterface::getSubscribedEvents