src/Http/Providers/VersionServiceProvider.php
protected function registerSupportedVersions(VersionControl $version): void
    {
        foreach ($this->versions as $code => $namespace) {
            $version->addVersion($code, $namespace);
        }

        if (! is_null($this->defaultVersion)) {
            $version->setDefaultVersion($this->defaultVersion);
        }
    }
protected function registerSupportedVersions(VersionControl $version): void
    {
        foreach ($this->versions as $code => $namespace) {
            $version->addVersion($code, $namespace);
        }

        if (! is_null($this->defaultVersion)) {
            $version->setDefaultVersion($this->defaultVersion);
        }
    }
protected function registerSupportedVersions ( VersionControl $ version ) : void { foreach ( $ this -> versions as $ code => $ namespace ) { $ version -> addVersion ( $ code , $ namespace ) ; } if ( ! is_null ( $ this -> defaultVersion ) ) { $ version -> setDefaultVersion ( $ this -> defaultVersion ) ; } }
Register supported version.

@param  \Orchestra\Http\VersionControl  $version

@return void
Register supported version .