src/Support/Versioning.php
protected function proxyRequestViaVersion(string $swapVersion, callable $callback): Response
    {
        $version = $this->version;

        try {
            $this->version = $swapVersion;

            return \call_user_func($callback);
        } finally {
            $this->version = $version;
        }
    }
protected function proxyRequestViaVersion(string $swapVersion, callable $callback): Response
    {
        $version = $this->version;

        try {
            $this->version = $swapVersion;

            return \call_user_func($callback);
        } finally {
            $this->version = $version;
        }
    }
protected function proxyRequestViaVersion ( string $ swapVersion , callable $ callback ) : Response { $ version = $ this -> version ; try { $ this -> version = $ swapVersion ; return \ call_user_func ( $ callback ) ; } finally { $ this -> version = $ version ; } }
Proxy route to response via other version.

@param  string   $swapVersion
@param  callable $callback

@return \Laravie\Codex\Contracts\Response
Proxy route to response via other version .