Docs

IServicesForCallback interface


Definition

Namespace: DafCore
Phar: DafCore.phar

Methods

function GetServicesForCallback(string | callable $classOrFunction, callable $onNotFound = null) : array
Get services array from DI Container by giving class or function.
if classOrCallable is a string the retun array will be full with the services from the DI Container by the Constructor parameters.
if classOrCallable is a Callable the retun array will be full with the services from the DI Container by the Function parameters.