Exemplo n.º 1
0
 /**
  * Delete temporary package files
  *
  * @return boolean
  */
 protected function deletePackageFiles()
 {
     $res = parent::deletePackageFiles();
     $res &= $this->deletePackageArchive();
     return $res;
 }
Exemplo n.º 2
0
 /**
  * Throw an exception and remove package files.
  * Redeclared to prevent of deleting a package of installed extension.
  *
  * @param  string $errorMessage
  * @return void
  */
 protected function throwErrorAndRemovePackage($errorMessage = '')
 {
     if (!$this->isNew()) {
         throw new Error($errorMessage);
     }
     return parent::throwErrorAndRemovePackage($errorMessage);
 }