You are here

class SubscriberService in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/event-dispatcher/Tests/ContainerAwareEventDispatcherTest.php \Symfony\Component\EventDispatcher\Tests\SubscriberService
  2. 8 vendor/symfony/event-dispatcher/Tests/DependencyInjection/RegisterListenersPassTest.php \Symfony\Component\EventDispatcher\Tests\DependencyInjection\SubscriberService
Same name and namespace in other branches
  1. 8.0 vendor/symfony/event-dispatcher/Tests/ContainerAwareEventDispatcherTest.php \Symfony\Component\EventDispatcher\Tests\SubscriberService

Hierarchy

Expanded class hierarchy of SubscriberService

File

vendor/symfony/event-dispatcher/Tests/ContainerAwareEventDispatcherTest.php, line 237

Namespace

Symfony\Component\EventDispatcher\Tests
View source
class SubscriberService implements EventSubscriberInterface {
  public static function getSubscribedEvents() {
    return array(
      'onEvent' => array(
        'onEvent',
      ),
    );
  }
  public function onEvent(Event $e) {
  }

}

Members

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