PHP Class Webiny\Component\EventManager\EventProcessor

Inheritance: use trait Webiny\Component\StdLib\StdLibTrait, use trait Webiny\Component\StdLib\SingletonTrait
显示文件 Open project: Webiny/Framework Class Usage Examples

Public Methods

Method Description
process ( array | ArrayObject $eventListeners, Event $event, null | string $resultType = null, null | integer $limit = null ) : array Process given event

Private Methods

Method Description
orderByPriority ( $eventListeners ) : mixed

Method Details

process() public method

Process given event
public process ( array | ArrayObject $eventListeners, Event $event, null | string $resultType = null, null | integer $limit = null ) : array
$eventListeners array | ArrayObject EventListeners that are subscribed to this event
$event Event Event data object
$resultType null | string Type of event result to enforce (can be any class or interface name)
$limit null | integer Number of results to return
return array