src/Composer/Repository/Vcs/SvnDriver.php
public function getComposerInformation($identifier)
    {
        if (!isset($this->infoCache[$identifier])) {
            if ($this->shouldCache($identifier) && $res = $this->cache->read($identifier.'.json')) {
                return $this->infoCache[$identifier] = JsonFile::parseJson($res);
            }

            try {
                $composer = $this->getBaseComposerInformation($identifier);
            } catch (TransportException $e) {
                $message = $e->getMessage();
                if (stripos($message, 'path not found') === false && stripos($message, 'svn: warning: W160013') === false) {
                    throw $e;
                }
                // remember a not-existent composer.json
                $composer = '';
            }

            if ($this->shouldCache($identifier)) {
                $this->cache->write($identifier.'.json', json_encode($composer));
            }

            $this->infoCache[$identifier] = $composer;
        }

        return $this->infoCache[$identifier];
    }
public function getComposerInformation($identifier)
    {
        if (!isset($this->infoCache[$identifier])) {
            if ($this->shouldCache($identifier) && $res = $this->cache->read($identifier.'.json')) {
                return $this->infoCache[$identifier] = JsonFile::parseJson($res);
            }

            try {
                $composer = $this->getBaseComposerInformation($identifier);
            } catch (TransportException $e) {
                $message = $e->getMessage();
                if (stripos($message, 'path not found') === false && stripos($message, 'svn: warning: W160013') === false) {
                    throw $e;
                }
                // remember a not-existent composer.json
                $composer = '';
            }

            if ($this->shouldCache($identifier)) {
                $this->cache->write($identifier.'.json', json_encode($composer));
            }

            $this->infoCache[$identifier] = $composer;
        }

        return $this->infoCache[$identifier];
    }
public function getComposerInformation ( $ identifier ) { if ( ! isset ( $ this -> infoCache [ $ identifier ] ) ) { if ( $ this -> shouldCache ( $ identifier ) && $ res = $ this -> cache -> read ( $ identifier . '.json' ) ) { return $ this -> infoCache [ $ identifier ] = JsonFile :: parseJson ( $ res ) ; } try { $ composer = $ this -> getBaseComposerInformation ( $ identifier ) ; } catch ( TransportException $ e ) { $ message = $ e -> getMessage ( ) ; if ( stripos ( $ message , 'path not found' ) === false && stripos ( $ message , 'svn: warning: W160013' ) === false ) { throw $ e ; } // remember a not-existent composer.json $ composer = '' ; } if ( $ this -> shouldCache ( $ identifier ) ) { $ this -> cache -> write ( $ identifier . '.json' , json_encode ( $ composer ) ) ; } $ this -> infoCache [ $ identifier ] = $ composer ; } return $ this -> infoCache [ $ identifier ] ; }
{@inheritdoc}
{