Class

eZ\Publish\Core\Base\Container\ApiLoader\SignalSlot\SignalDispatcherFactory

class SignalDispatcherFactory

Constants

RELATIVE_SIGNAL_NAMESPACE

Relative namespace for internal signals.

Methods

__construct(string $signalDispatcherClass, $searchEngineAlias $searchEngineAlias)

SignalDispatcherFactory constructor.

string getSearchEngineAlias()

Get current search engine alias.

addSlotsForSearchEngine(string $searchEngineAlias, array $searchEngineSignalSlots)

Bulk add all signal slots if needed for a search engine.

SignalDispatcher buildSignalDispatcher()

Build SignalDispatcher for SignalSlots.

Details

at line 39
public __construct(string $signalDispatcherClass, $searchEngineAlias $searchEngineAlias)

SignalDispatcherFactory constructor.

Parameters

string $signalDispatcherClass
$searchEngineAlias $searchEngineAlias

at line 52
public string getSearchEngineAlias()

Get current search engine alias.

Return Value

string

at line 63
public addSlotsForSearchEngine(string $searchEngineAlias, array $searchEngineSignalSlots)

Bulk add all signal slots if needed for a search engine.

Parameters

string $searchEngineAlias
array $searchEngineSignalSlots [signal => array(slot1, slot2, ...)]

at line 84
public SignalDispatcher buildSignalDispatcher()

Build SignalDispatcher for SignalSlots.

Return Value

SignalDispatcher