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

  • ContainerAwareEventDispatcher
  • Event
  • EventDispatcher
  • GenericEvent
  • ImmutableEventDispatcher

Interfaces

  • EventDispatcherInterface
  • EventSubscriberInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class ImmutableEventDispatcher

A read-only proxy for an event dispatcher.

Symfony\Component\EventDispatcher\ImmutableEventDispatcher implements Symfony\Component\EventDispatcher\EventDispatcherInterface
Namespace: Symfony\Component\EventDispatcher
Author: Bernhard Schussek bschussek@gmail.com
Located at ImmutableEventDispatcher.php
Methods summary
public
# __construct( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher )

Creates an unmodifiable proxy for an event dispatcher.

Creates an unmodifiable proxy for an event dispatcher.

Parameters

$dispatcher
The proxied event dispatcher.
public Symfony\Component\EventDispatcher\Event
# dispatch( string $eventName, Symfony\Component\EventDispatcher\Event $event = null )

Dispatches an event to all registered listeners.

Dispatches an event to all registered listeners.

Parameters

$eventName

The name of the event to dispatch. The name of the event is the name of the method that is invoked on listeners.

$event

The event to pass to the event handlers/listeners. If not supplied, an empty Event instance is created.

Returns

Symfony\Component\EventDispatcher\Event

Implementation of

Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()
public
# addListener( string $eventName, callable $listener, integer $priority = 0 )

Adds an event listener that listens on the specified events.

Adds an event listener that listens on the specified events.

Parameters

$eventName
The event to listen on
$listener
The listener
$priority

The higher this value, the earlier an event listener will be triggered in the chain (defaults to 0)

Implementation of

Symfony\Component\EventDispatcher\EventDispatcherInterface::addListener()
public
# addSubscriber( Symfony\Component\EventDispatcher\EventSubscriberInterface $subscriber )

Adds an event subscriber.

Adds an event subscriber.

Parameters

$subscriber
The subscriber.

Implementation of

Symfony\Component\EventDispatcher\EventDispatcherInterface::addSubscriber()
public
# removeListener( string $eventName, callable $listener )

Removes an event listener from the specified events.

Removes an event listener from the specified events.

Parameters

$eventName
The event to remove a listener from
$listener
The listener to remove

Implementation of

Symfony\Component\EventDispatcher\EventDispatcherInterface::removeListener()
public
# removeSubscriber( Symfony\Component\EventDispatcher\EventSubscriberInterface $subscriber )

Removes an event subscriber.

Removes an event subscriber.

Parameters

$subscriber
The subscriber

Implementation of

Symfony\Component\EventDispatcher\EventDispatcherInterface::removeSubscriber()
public array
# getListeners( string $eventName = null )

Gets the listeners of a specific event or all listeners.

Gets the listeners of a specific event or all listeners.

Parameters

$eventName
The name of the event

Returns

array
The event listeners for the specified event, or all event listeners by event name

Implementation of

Symfony\Component\EventDispatcher\EventDispatcherInterface::getListeners()
public boolean
# hasListeners( string $eventName = null )

Checks whether an event has any registered listeners.

Checks whether an event has any registered listeners.

Parameters

$eventName
The name of the event

Returns

boolean
true if the specified event has any listeners, false otherwise

Implementation of

Symfony\Component\EventDispatcher\EventDispatcherInterface::hasListeners()
Omnipay Fat Zebra / Paystream Gateway Module API Documentation API documentation generated by ApiGen