Exemplo n.º 1
0
 private static function downloadReleaseListFromOfficialSite($version, OptionResult $options = null)
 {
     $max = $options && $options->old ? 1000 : 100;
     $url = "https://secure.php.net/releases/index.php?json&version={$version}&max={$max}";
     $file = DownloadFactory::getInstance(Logger::getInstance(), $options)->download($url);
     $json = file_get_contents($file);
     return json_decode($json, true);
 }
Exemplo n.º 2
0
 public function setUp()
 {
     $this->logger = Logger::getInstance();
     $this->logger->setQuiet();
 }
Exemplo n.º 3
0
 public function createSchemaGenerator()
 {
     $g = new \LazyRecord\Schema\SchemaGenerator(ConfigLoader::getInstance(), Logger::getInstance());
     $g->forceUpdate = true;
     return $g;
 }