public static function call($function, \Closure $callback = null)
    {
        $result = null;
        if (is_array($function)) {
            $result = self::methodDI($function, $callback);
        } elseif (is_callable($function, true)) {
            $result = self::functionDI($function, $callback);
        }
        return $result;
    }
public static function call($function, \Closure $callback = null)
    {
        $result = null;
        if (is_array($function)) {
            $result = self::methodDI($function, $callback);
        } elseif (is_callable($function, true)) {
            $result = self::functionDI($function, $callback);
        }
        return $result;
    }
public static function call ( $ function , \ Closure $ callback = null ) { $ result = null ; if ( is_array ( $ function ) ) { $ result = self :: methodDI ( $ function , $ callback ) ; } elseif ( is_callable ( $ function , true ) ) { $ result = self :: functionDI ( $ function , $ callback ) ; } return $ result ; }
Call function with dependency injection

@param mixed $function
@param \Closure $callback
@return mixed
Call function with dependency injection