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

  • TraceableEventDispatcher
  • WrappedListener

Interfaces

  • TraceableEventDispatcherInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class TraceableEventDispatcher

Collects some data about event listeners.

This event dispatcher delegates the dispatching to another one.

Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher implements Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcherInterface
Namespace: Symfony\Component\EventDispatcher\Debug
Author: Fabien Potencier fabien@symfony.com
Located at Debug/TraceableEventDispatcher.php
Methods summary
public
# __construct( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, Symfony\Component\Stopwatch\Stopwatch $stopwatch, Psr\Log\LoggerInterface $logger = null )

Constructor.

Constructor.

Parameters

$dispatcher
An EventDispatcherInterface instance
$stopwatch
A Stopwatch instance
$logger
A LoggerInterface instance
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()
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 array
# getCalledListeners( )

Gets the called listeners.

Gets the called listeners.

Returns

array
An array of called listeners

Implementation of

Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcherInterface::getCalledListeners()
public array
# getNotCalledListeners( )

Gets the not called listeners.

Gets the not called listeners.

Returns

array
An array of not called listeners

Implementation of

Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcherInterface::getNotCalledListeners()
public mixed
# __call( string $method, array $arguments )

Proxies all method calls to the original event dispatcher.

Proxies all method calls to the original event dispatcher.

Parameters

$method
The method name
$arguments
The method arguments

Returns

mixed
protected
# preDispatch( string $eventName, Symfony\Component\EventDispatcher\Event $event )

Called before dispatching the event.

Called before dispatching the event.

Parameters

$eventName
The event name
$event
The event
protected
# postDispatch( string $eventName, Symfony\Component\EventDispatcher\Event $event )

Called after dispatching the event.

Called after dispatching the event.

Parameters

$eventName
The event name
$event
The event
Properties summary
protected $logger
#
protected $stopwatch
#
Omnipay Fat Zebra / Paystream Gateway Module API Documentation API documentation generated by ApiGen