lib/Github/Client.php
private function setEnterpriseUrl($enterpriseUrl)
    {
        $builder = $this->getHttpClientBuilder();
        $builder->removePlugin(Plugin\AddHostPlugin::class);
        $builder->removePlugin(PathPrepend::class);

        $builder->addPlugin(new Plugin\AddHostPlugin(UriFactoryDiscovery::find()->createUri($enterpriseUrl)));
        $builder->addPlugin(new PathPrepend(sprintf('/api/%s', $this->getApiVersion())));
    }
private function setEnterpriseUrl($enterpriseUrl)
    {
        $builder = $this->getHttpClientBuilder();
        $builder->removePlugin(Plugin\AddHostPlugin::class);
        $builder->removePlugin(PathPrepend::class);

        $builder->addPlugin(new Plugin\AddHostPlugin(UriFactoryDiscovery::find()->createUri($enterpriseUrl)));
        $builder->addPlugin(new PathPrepend(sprintf('/api/%s', $this->getApiVersion())));
    }
private function setEnterpriseUrl ( $ enterpriseUrl ) { $ builder = $ this -> getHttpClientBuilder ( ) ; $ builder -> removePlugin ( Plugin \ AddHostPlugin :: class ) ; $ builder -> removePlugin ( PathPrepend :: class ) ; $ builder -> addPlugin ( new Plugin \ AddHostPlugin ( UriFactoryDiscovery :: find ( ) -> createUri ( $ enterpriseUrl ) ) ) ; $ builder -> addPlugin ( new PathPrepend ( sprintf ( '/api/%s' , $ this -> getApiVersion ( ) ) ) ) ; }
Sets the URL of your GitHub Enterprise instance.

@param string $enterpriseUrl URL of the API in the form of http(s)://hostname
Sets the URL of your GitHub Enterprise instance .