Class AbstractCallbackListener.
__construct(array|callable $callback, array|null $restrictions)
arraycallableThe callback to call when invoked.
arraynullThe restrictions for the callback.
__invoke(\ContaoCommunityAlliance\DcGeneral\Event\AbstractEnvironmentAwareEvent $event) : void
\ContaoCommunityAlliance\DcGeneral\Event\AbstractEnvironmentAwareEventThe Event for which the callback shall be invoked.
getArgs(\Symfony\Component\EventDispatcher\Event $event) : array
getCallback() : array | callable
arraycallable
setRestrictions(null|string $dataContainerName) : void
nullstringThe name of the data container to limit execution on.
wantToExecute(\ContaoCommunityAlliance\DcGeneral\Event\AbstractEnvironmentAwareEvent $event) : bool
\ContaoCommunityAlliance\DcGeneral\Event\AbstractEnvironmentAwareEventThe Event for which the callback shall be invoked.
bool$callback : array | callable
$dataContainerName : null | string