Ejemplo n.º 1
0
 public function migrate()
 {
     $this->reporter->start();
     // functions called here should be idempotent
     $this->migrate_1_7_0();
     $this->reporter->end();
 }
 /**
  * run the ckecking
  */
 function run()
 {
     $this->nbError = 0;
     $this->nbOk = 0;
     $this->nbWarning = 0;
     $this->nbNotice = 0;
     $this->reporter->start();
     try {
         $this->checkAppPaths();
         $this->loadBuildFile();
         $this->checkPhpExtensions();
         $this->checkPhpSettings();
     } catch (Exception $e) {
         $this->error('cannot.continue', $e->getMessage());
     }
     $results = array('error' => $this->nbError, 'warning' => $this->nbWarning, 'ok' => $this->nbOk, 'notice' => $this->nbNotice);
     $this->reporter->end($results);
 }
Ejemplo n.º 3
0
 protected function endMessage()
 {
     $this->reporter->end(array('error' => $this->nbError, 'warning' => $this->nbWarning, 'ok' => $this->nbOk, 'notice' => $this->nbNotice));
 }
Ejemplo n.º 4
0
 protected function endMessage()
 {
     $this->reporter->end();
 }