Пример #1
0
 /**
  * Uninstalls package.
  *
  * @param RepositoryInterface $repo      repository in which to check
  * @param UninstallOperation  $operation operation instance
  */
 public function uninstall(RepositoryInterface $repo, UninstallOperation $operation)
 {
     $package = $operation->getPackage();
     $installer = $this->getInstaller($package->getType());
     $installer->uninstall($repo, $package);
 }
Пример #2
0
 /**
  * Uninstalls package.
  *
  * @param   UninstallOperation  $operation  operation instance
  */
 public function uninstall(UninstallOperation $operation)
 {
     $package = $operation->getPackage();
     if ($package instanceof AliasPackage) {
         $package = $package->getAliasOf();
     }
     $installer = $this->getInstaller($package->getType());
     $installer->uninstall($package);
 }
 public function uninstall(RepositoryInterface $repo, UninstallOperation $operation)
 {
     $this->uninstalled[] = $operation->getPackage();
     $this->trace[] = (string) $operation;
     $repo->removePackage($operation->getPackage());
 }
 public function onUninstall(UninstallOperation $operation, &$postinstall_queue)
 {
     $package = $operation->getPackage();
     $code = $this->getApplicationCode($package);
     if ($this->io->askConfirmation("Do you want to delete all database tables of application '{$code}'?", false)) {
         $this->runPhing($code, 'uninstall');
     } else {
         $this->io->write("Application code is going to be removed, but the database still has all data");
     }
     $this->io->write("<warning>Please manually delete all references to {$code} from the core config file</warning>");
 }
Пример #5
0
 /**
  * Uninstalls package.
  *
  * @param   UninstallOperation  $operation  operation instance
  */
 public function uninstall(UninstallOperation $operation)
 {
     $installer = $this->getInstaller($operation->getPackage()->getType());
     $installer->uninstall($operation->getPackage());
 }
Пример #6
0
 /**
  * {@inheritDoc}
  */
 public function uninstall(RepositoryInterface $repo, UninstallOperation $operation)
 {
     $this->packageInformation->set($this->packageInformation->escape($operation->getPackage()->getPrettyName()), ['type' => 'uninstall', 'package' => $this->dumper->dump($operation->getPackage())]);
     parent::uninstall($repo, $operation);
 }