function
GetServicesForCallback(string | callable $classOrCallable, callable $onNotFound) : 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.