Zend\EventManager\EventManager::triggerUntil
Trigger listeners until return value of one causes a callback to evaluate to true
Triggers listeners until the provided callback evaluates the return value of one as true, or until all listeners have been executed.
Signature
public function triggerUntil(string
$event,
[string|object
$target = null,
[array|ArrayAccess
$argv = null,
[callable
$callback = null]]] )
Parameters
$event
— string$target
— object- Object calling emit, or symbol describing target (such as static method name)
$argv
— object- Array of arguments; typically, should be associative
$callback
— object
Returns
- ResponseCollection
Errors/Exceptions
-
InvalidCallbackException
- if invalid callable provided