public function execute(callable $callback, array $vars): Response
    {
        $arguments = $this->resolveDependencies($callback, $vars);

        return call_user_func_array($callback, $arguments);
    }
public function execute(callable $callback, array $vars): Response
    {
        $arguments = $this->resolveDependencies($callback, $vars);

        return call_user_func_array($callback, $arguments);
    }
public function execute ( callable $ callback , array $ vars ) : Response { $ arguments = $ this -> resolveDependencies ( $ callback , $ vars ) ; return call_user_func_array ( $ callback , $ arguments ) ; }
Resolves dependencies for and executes a callback

@param callable $callback The callback to execute
@param array    $vars     The variables to inject

@return mixed The return value of the callback
Resolves dependencies for and executes a callback