Overview

Namespaces

  • Composer
    • Autoload
  • Guzzle
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
        • Header
      • QueryAggregator
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Mock
    • Stream
  • Mockery
    • Adapter
      • Phpunit
    • CountValidator
    • Exception
    • Generator
      • StringManipulation
        • Pass
    • Loader
    • Matcher
  • None
  • Omnipay
    • Common
      • Exception
      • Message
    • Dummy
      • Message
    • Fatzebra
      • Message
  • PHP
  • Symfony
    • Component
      • EventDispatcher
        • Debug
        • DependencyInjection
        • Tests
          • Debug
          • DependencyInjection
      • HttpFoundation
        • File
          • Exception
          • MimeType
        • Session
          • Attribute
          • Flash
          • Storage
            • Handler
            • Proxy
        • Tests
          • File
            • MimeType
          • Session
            • Attribute
            • Flash
            • Storage
              • Handler
              • Proxy
      • Yaml
        • Exception
        • Tests

Classes

  • AbstractEventDispatcherTest
  • CallableClass
  • ContainerAwareEventDispatcherTest
  • EventDispatcherTest
  • EventTest
  • GenericEventTest
  • ImmutableEventDispatcherTest
  • Service
  • SubscriberService
  • TestEventListener
  • TestEventSubscriber
  • TestEventSubscriberWithMultipleListeners
  • TestEventSubscriberWithPriorities
  • TestWithDispatcher
  • Overview
  • Namespace
  • Class
  • Tree

Class SubscriberService

An EventSubscriber knows himself what events he is interested in. If an EventSubscriber is added to an EventDispatcherInterface, the manager invokes Symfony\Component\EventDispatcher\Tests\SubscriberService::getSubscribedEvents() and registers the subscriber as a listener for all returned events.

Symfony\Component\EventDispatcher\Tests\SubscriberService implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Namespace: Symfony\Component\EventDispatcher\Tests
Author: Guilherme Blanco guilhermeblanco@hotmail.com
Author: Jonathan Wage jonwage@gmail.com
Author: Roman Borschel roman@code-factory.org
Author: Bernhard Schussek bschussek@gmail.com
Api
Located at Tests/ContainerAwareEventDispatcherTest.php
Methods summary
public static array
# getSubscribedEvents( )

Returns an array of event names this subscriber wants to listen to.

Returns an array of event names this subscriber wants to listen to.

The array keys are event names and the value can be: * The method name to call (priority defaults to 0) * An array composed of the method name to call and the priority * An array of arrays composed of the method names to call and respective priorities, or 0 if unset

For instance: * array('eventName' => 'methodName') * array('eventName' => array('methodName', $priority)) * array('eventName' => array(array('methodName1', $priority), array('methodName2'))

Returns

array
The event names to listen to

Api

Implementation of

Symfony\Component\EventDispatcher\EventSubscriberInterface::getSubscribedEvents()
public
# onEvent( Symfony\Component\EventDispatcher\Event $e )
Omnipay Fat Zebra / Paystream Gateway Module API Documentation API documentation generated by ApiGen