Exemplo n.º 1
0
 /**
  * Allows to give pre-extracted directory as zip
  * @see UpgradeDriver::extractZip()
  */
 protected function extractZip($zip)
 {
     if ($this->context['zip_as_dir'] && is_dir($zip)) {
         // pre-extracted
         if (!file_exists("{$zip}/manifest.php")) {
             return $this->error("{$zip} does not contain manifest.php");
         }
         $this->log("Using {$zip} as extracted ZIP directory");
         return true;
     }
     return parent::extractZip($zip);
 }