You are here

class TestEventSubscriberWithPriorities in Zircon Profile 8.0

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

Hierarchy

Expanded class hierarchy of TestEventSubscriberWithPriorities

File

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

Namespace

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

}

Members

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