Class Callbacks.

Static callback emitting class.

 Methods

Call a Contao style callback.

call(array|callable $callback, mixed $_) : mixed
Static
SuppressWarnings (PHPMD.ShortVariable)
SuppressWarnings (PHPMD.UnusedFormalParameter)
SuppressWarnings (PHPMD.CamelCaseParameterName)

Parameters

$callback

arraycallable

The callback to invoke.

$_

mixed

List of arguments to pass to the callback [optional].

Returns

mixed

Call a Contao style callback.

callArgs(array|callable $callback, array $args) : mixed
Static

Parameters

$callback

arraycallable

The callback to invoke.

$args

array

List of arguments to pass to the callback.

Exceptions

\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException When the callback throws an exception.

Returns

mixed

Evaluate the callback and create an object instance if required and possible.

evaluateCallback(array|callable $callback) : array | callable
Static

Parameters

$callback

arraycallable

The callback to invoke.

Returns

arraycallable