|
|
@ -119,11 +119,15 @@ abstract class BitbucketDriver extends VcsDriver
|
|
|
|
|
|
|
|
|
|
|
|
if (!isset($this->infoCache[$identifier])) {
|
|
|
|
if (!isset($this->infoCache[$identifier])) {
|
|
|
|
if ($this->shouldCache($identifier) && $res = $this->cache->read($identifier)) {
|
|
|
|
if ($this->shouldCache($identifier) && $res = $this->cache->read($identifier)) {
|
|
|
|
return $this->infoCache[$identifier] = JsonFile::parseJson($res);
|
|
|
|
$composer = JsonFile::parseJson($res);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
$composer = $this->getBaseComposerInformation($identifier);
|
|
|
|
$composer = $this->getBaseComposerInformation($identifier);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($this->shouldCache($identifier)) {
|
|
|
|
|
|
|
|
$this->cache->write($identifier, json_encode($composer));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($composer) {
|
|
|
|
if ($composer) {
|
|
|
|
// specials for bitbucket
|
|
|
|
// specials for bitbucket
|
|
|
|
if (!isset($composer['support']['source'])) {
|
|
|
|
if (!isset($composer['support']['source'])) {
|
|
|
@ -173,10 +177,6 @@ abstract class BitbucketDriver extends VcsDriver
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$this->infoCache[$identifier] = $composer;
|
|
|
|
$this->infoCache[$identifier] = $composer;
|
|
|
|
|
|
|
|
|
|
|
|
if ($this->shouldCache($identifier)) {
|
|
|
|
|
|
|
|
$this->cache->write($identifier, json_encode($composer));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return $this->infoCache[$identifier];
|
|
|
|
return $this->infoCache[$identifier];
|
|
|
|