protected function hasRedirectUrl($url)
    {
        if (null === $this->redirectApi && 0 === strpos($url, $this->getRepositoryApiUrl())) {
            $this->redirectApi = $this->getNewRepositoryUrl();

            if (\is_string($this->redirectApi)) {
                $this->cache->write('redirect-api', $this->redirectApi);
            }
        }

        return \is_string($this->redirectApi);
    }
protected function hasRedirectUrl($url)
    {
        if (null === $this->redirectApi && 0 === strpos($url, $this->getRepositoryApiUrl())) {
            $this->redirectApi = $this->getNewRepositoryUrl();

            if (\is_string($this->redirectApi)) {
                $this->cache->write('redirect-api', $this->redirectApi);
            }
        }

        return \is_string($this->redirectApi);
    }
protected function hasRedirectUrl ( $ url ) { if ( null === $ this -> redirectApi && 0 === strpos ( $ url , $ this -> getRepositoryApiUrl ( ) ) ) { $ this -> redirectApi = $ this -> getNewRepositoryUrl ( ) ; if ( \ is_string ( $ this -> redirectApi ) ) { $ this -> cache -> write ( 'redirect-api' , $ this -> redirectApi ) ; } } return \ is_string ( $ this -> redirectApi ) ; }
Check if the driver must find the new url.

@param string $url The url

@return bool
Check if the driver must find the new url .