public function call($callback, $arguments = [])
    {
        $dependencies = $this->getMethodDependencies($callback, $arguments);

        return call_user_func_array($callback, $dependencies);
    }
public function call($callback, $arguments = [])
    {
        $dependencies = $this->getMethodDependencies($callback, $arguments);

        return call_user_func_array($callback, $dependencies);
    }
public function call ( $ callback , $ arguments = [ ] ) { $ dependencies = $ this -> getMethodDependencies ( $ callback , $ arguments ) ; return call_user_func_array ( $ callback , $ dependencies ) ; }
Call the given callback or class method with dependency injection.

@param $callback
@param array $arguments
@return mixed
Call the given callback or class method with dependency injection .