메소드 | 설명 | |
---|---|---|
addListener ( $eventName, $listener, $priority ) | ||
addSubscriber ( Symfony\Component\EventDispatcher\EventSubscriberInterface $subscriber ) | ||
connect ( string $name, mixed $listener, integer $priority ) | Connects a listener to a given event name. | |
disconnect ( string $name ) | Disconnects all listeners for the given event name. | |
dispatch ( $eventName, Symfony\Component\EventDispatcher\Event $event = null ) | ||
filter ( Symfony\Component\EventDispatcher\Event $event, mixed $value ) : Symfony\Component\EventDispatcher\Event | Filters a value by calling all listeners of a given event. | |
getListeners ( $eventName = null ) | ||
getListeners ( string $name ) : array | Returns all listeners associated with a given event name. | |
hasListeners ( $eventName = null ) | ||
hasListeners ( string $name ) : boolean | Returns true if the given event name has some listeners. | |
notify ( Symfony\Component\EventDispatcher\Event $event ) : Symfony\Component\EventDispatcher\Event | Notifies all listeners of a given event. | |
notifyUntil ( Symfony\Component\EventDispatcher\Event $event ) : Symfony\Component\EventDispatcher\Event | Notifies all listeners of a given event until one returns a non null value. | |
removeListener ( $eventName, $listener ) | ||
removeSubscriber ( Symfony\Component\EventDispatcher\EventSubscriberInterface $subscriber ) |
메소드 | 설명 | |
---|---|---|
doDispatch ( array[callback] $listeners, string $eventName, Symfony\Component\EventDispatcher\Event $event ) | Triggers the listeners of an event. |
메소드 | 설명 | |
---|---|---|
sortListeners ( string $eventName ) | Sorts the internal list of listeners for the given event by priority. |
public addSubscriber ( Symfony\Component\EventDispatcher\EventSubscriberInterface $subscriber ) | ||
$subscriber | Symfony\Component\EventDispatcher\EventSubscriberInterface |
public disconnect ( string $name ) | ||
$name | string | An event name |
public dispatch ( $eventName, Symfony\Component\EventDispatcher\Event $event = null ) | ||
$event | Symfony\Component\EventDispatcher\Event |
protected doDispatch ( array[callback] $listeners, string $eventName, Symfony\Component\EventDispatcher\Event $event ) | ||
$listeners | array[callback] | |
$eventName | string | The name of the event to dispatch. |
$event | Symfony\Component\EventDispatcher\Event | The event object to pass to the event handlers/listeners. |
public getListeners ( string $name ) : array | ||
$name | string | The event name |
리턴 | array | An array of listeners |
public hasListeners ( string $name ) : boolean | ||
$name | string | The event name |
리턴 | boolean | true if some listeners are connected, false otherwise |
public notify ( Symfony\Component\EventDispatcher\Event $event ) : Symfony\Component\EventDispatcher\Event | ||
$event | Symfony\Component\EventDispatcher\Event | An Event instance |
리턴 | Symfony\Component\EventDispatcher\Event | The Event instance |
public notifyUntil ( Symfony\Component\EventDispatcher\Event $event ) : Symfony\Component\EventDispatcher\Event | ||
$event | Symfony\Component\EventDispatcher\Event | An Event instance |
리턴 | Symfony\Component\EventDispatcher\Event | The Event instance |
public removeSubscriber ( Symfony\Component\EventDispatcher\EventSubscriberInterface $subscriber ) | ||
$subscriber | Symfony\Component\EventDispatcher\EventSubscriberInterface |