You are here

public function TestEventSubscriber::getSubscribedEvents in Zircon Profile 8.0

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

Returns an array of events this subscriber wants to listen to.

Return value

array

Overrides EventSubscriber::getSubscribedEvents

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/EventManagerTest.php, line 84

Class

TestEventSubscriber

Namespace

Doctrine\Tests\Common

Code

public function getSubscribedEvents() {
  return array(
    'preFoo',
    'postFoo',
  );
}