Свойство | Тип | Описание | |
---|---|---|---|
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | ||
$slots | array | Indexed by [$signalClassName][$signalMethodName] and then numeric with an array of information about the slot |
Метод | Описание | |
---|---|---|
connect ( string $signalClassName, string $signalName, mixed $slotClassNameOrObject, string $slotMethodName = '', boolean $passSignalInformation = true ) : void | Connects a signal with a slot. | |
dispatch ( string $signalClassName, string $signalName, array $signalArguments = [] ) : void | Dispatches a signal by calling the registered Slot methods | |
getSignals ( ) : array | Returns all signals with its slots | |
getSlots ( string $signalClassName, string $signalName ) : array | Returns all slots which are connected with the given signal | |
injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void | Injects the object manager |
public connect ( string $signalClassName, string $signalName, mixed $slotClassNameOrObject, string $slotMethodName = '', boolean $passSignalInformation = true ) : void | ||
$signalClassName | string | Name of the class containing the signal |
$signalName | string | Name of the signal |
$slotClassNameOrObject | mixed | Name of the class containing the slot or the instantiated class or a Closure object |
$slotMethodName | string | Name of the method to be used as a slot. If $slotClassNameOrObject is a Closure object, this parameter is ignored |
$passSignalInformation | boolean | If set to TRUE, the last argument passed to the slot will be information about the signal (EmitterClassName::signalName) |
Результат | void |
public getSignals ( ) : array | ||
Результат | array | An array of arrays with slot information |
public injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void | ||
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | |
Результат | void |
protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager | ||
Результат | Neos\Flow\ObjectManagement\ObjectManagerInterface |
protected array $slots | ||
Результат | array |