You are here

class TestEventSubscriber in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/event-dispatcher/Tests/AbstractEventDispatcherTest.php \Symfony\Component\EventDispatcher\Tests\TestEventSubscriber
  2. 8 vendor/doctrine/common/tests/Doctrine/Tests/Common/EventManagerTest.php \Doctrine\Tests\Common\TestEventSubscriber
Same name and namespace in other branches
  1. 8.0 vendor/symfony/event-dispatcher/Tests/AbstractEventDispatcherTest.php \Symfony\Component\EventDispatcher\Tests\TestEventSubscriber

Hierarchy

Expanded class hierarchy of TestEventSubscriber

File

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

Namespace

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

}

Members

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