public function resolveCallback(Closure $callback, $params = [])
    {
        $reflectionParameter = new ReflectionFunction($callback);

        $dependencies = $reflectionParameter->getParameters();

        return $this->getDependencies($dependencies, $params);
    }
public function resolveCallback(Closure $callback, $params = [])
    {
        $reflectionParameter = new ReflectionFunction($callback);

        $dependencies = $reflectionParameter->getParameters();

        return $this->getDependencies($dependencies, $params);
    }
public function resolveCallback ( Closure $ callback , $ params = [ ] ) { $ reflectionParameter = new ReflectionFunction ( $ callback ) ; $ dependencies = $ reflectionParameter -> getParameters ( ) ; return $ this -> getDependencies ( $ dependencies , $ params ) ; }
Resolve dependencies for a callback.

@param Closure $callback
@param array   $params

@return array
@throws Exception
Resolve dependencies for a callback .