PEAR_DependencyDB::uninstallPackage

PEAR_DependencyDB::uninstallPackage() – Remove dependencies of a package that is being uninstalled, or upgraded.

Synopsis

require_once '/DependencyDB.php';

void PEAR_DependencyDB::uninstallPackage ( PEAR_PackageFile_v1|PEAR_PackageFile_v2|array &$pkg )

Description

This method is used by the registry when a package is uninstalled or upgraded to remove the package's dependencies from the dependency database.

Upgraded packages first uninstall, then install

Parameter

PEAR_PackageFile_v1|PEAR_PackageFile_v2|array &$pkg

This parameter, if an array, should be in format:


<?php
array(
  'package' => 'packagename',
  'channel' => 'channelname'
);
?>

Throws

throws no exceptions thrown

Note

This function can not be called statically.

Get a raw dependency database. Calls setConfig() and assertDepsDB() (Previous) PEAR_Frontend (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.