return json_decode(file_get_contents($cacheFile));
}
- protected static function reposDirectory(){
- return self::getFluidbookPlayerBaseDirectory().'repos/fluidbook-html5';
+ protected static function reposDirectory()
+ {
+ return self::getFluidbookPlayerBaseDirectory() . 'repos/fluidbook-html5';
}
protected function fluidbookCreateBranch($branch)
$git = new Git($repos);
$branches = $git->listBranches();
+ file_put_contents($playerDir . '/activebranches', json_encode($branches));
+
foreach ($branches as $b) {
$gitsource = $branchesDir . $b;
$local = $localDir . $b;
}
$this->executeGitCommands($branchesDir . $b, ['reset --hard origin/' . $b, 'pull']);
}
- file_put_contents($playerDir . '/activebranches', json_encode($branches));
}
-
}