src/Http/VersionControl.php
public function resolve(string $namespace, string $version, string $name): string
    {
        $class = str_replace('.', '\\', $name);

        if (! array_key_exists($version, $this->supportedVersions)) {
            $version = $this->defaultVersion;
        }

        return sprintf('%s\%s\%s\%s', $namespace, $this->supportedVersions[$version], $class);
    }
public function resolve(string $namespace, string $version, string $name): string
    {
        $class = str_replace('.', '\\', $name);

        if (! array_key_exists($version, $this->supportedVersions)) {
            $version = $this->defaultVersion;
        }

        return sprintf('%s\%s\%s\%s', $namespace, $this->supportedVersions[$version], $class);
    }
public function resolve ( string $ namespace , string $ version , string $ name ) : string { $ class = str_replace ( '.' , '\\' , $ name ) ; if ( ! array_key_exists ( $ version , $ this -> supportedVersions ) ) { $ version = $ this -> defaultVersion ; } return sprintf ( '%s\%s\%s\%s' , $ namespace , $ this -> supportedVersions [ $ version ] , $ class ) ; }
Resolve version for requested class.

@param  string  $namespace
@param  string  $version
@param  string  $group
@param  string  $name

@return string
Resolve version for requested class .