class Propagation

Static class providing helper methods to propagate events.

Methods

static void
call(iterable $callables, array $parameters = [])

Calls a set of functions with the specified parameters.

static void
callOrThrow(iterable $callables, array $parameters = [], Throwable $exception = null)

Calls a set of functions with the specified parameters.

Details

at line 26
static void call(iterable $callables, array $parameters = [])

Calls a set of functions with the specified parameters.

This is intended for callback purpose.

Parameters

iterable $callables

The functions to call, each item a callable

array $parameters

The parameters to pass to the functions [optional]

Return Value

void

at line 49
static void callOrThrow(iterable $callables, array $parameters = [], Throwable $exception = null)

Calls a set of functions with the specified parameters.

If no function is present, throws an exception.

Parameters

iterable $callables

The functions to call, each item a callable

array $parameters

The parameters to pass to the functions [optional]

Throwable $exception

The exception to throw if no callback is provided [optional]

Return Value

void

Exceptions

Throwable