Class

eZ\Publish\Core\SignalSlot\SignalDispatcher

abstract class SignalDispatcher

Dispatches Signals to their assigned Slots.

An instance of this class is required by each object that needs to send Signals. It is recommended, that a SignalDispatcher works together with a {@link SlotFactory} to get hold of the actual Slots that listen for a given Signal, which it originally only knows by their identifier.

Methods

emit(Signal $signal)

Emits the given $signal.

Details

at line 30
abstract public emit(Signal $signal)

Emits the given $signal.

All assigned slots will eventually receive the $signal

Parameters

Signal $signal