Class Symfony\Component\EventDispatcher\ImmutableEventDispatcher

InheritanceSymfony\Component\EventDispatcher\ImmutableEventDispatcher
ImplementsSymfony\Component\EventDispatcher\EventDispatcherInterface

A read-only proxy for an event dispatcher.

Method Details

__construct() public method

Creates an unmodifiable proxy for an event dispatcher.

public void __construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher )
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface

The proxied event dispatcher

addListener() public method

{@inheritdoc}

public void addListener ( $eventName, $listener, $priority 0 )
$eventName
$listener
$priority
addSubscriber() public method

{@inheritdoc}

public void addSubscriber ( Symfony\Component\EventDispatcher\EventSubscriberInterface $subscriber )
$subscriber
dispatch() public method

{@inheritdoc}

public void dispatch ( $eventName, Symfony\Component\EventDispatcher\Event $event null )
$eventName
$event
getListenerPriority() public method

{@inheritdoc}

public void getListenerPriority ( $eventName, $listener )
$eventName
$listener
getListeners() public method

{@inheritdoc}

public void getListeners ( $eventName null )
$eventName
hasListeners() public method

{@inheritdoc}

public void hasListeners ( $eventName null )
$eventName
removeListener() public method

{@inheritdoc}

public void removeListener ( $eventName, $listener )
$eventName
$listener
removeSubscriber() public method

{@inheritdoc}

public void removeSubscriber ( Symfony\Component\EventDispatcher\EventSubscriberInterface $subscriber )
$subscriber