public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package)
	{
		if (getenv('OPUS_DISABLED')) {
			parent::uninstall($repo, $package);
			return;
		}

		//
		// Return immediately if we have no information relevant to our installer
		//

		if (!$this->checkFrameworkSupport($package)) {
			return;
		}

		$this->loadInstallationMap();

		foreach ($this->installationMap as $path => $packages) {
			if (($key = array_search($package->getName(), $packages)) !== FALSE) {
				unset($this->installationMap[$path][$key]);
			}
		}

		$this->cleanup();
		$this->saveInstallationMap();

		parent::uninstall($repo, $package);
	}
public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package)
	{
		if (getenv('OPUS_DISABLED')) {
			parent::uninstall($repo, $package);
			return;
		}

		//
		// Return immediately if we have no information relevant to our installer
		//

		if (!$this->checkFrameworkSupport($package)) {
			return;
		}

		$this->loadInstallationMap();

		foreach ($this->installationMap as $path => $packages) {
			if (($key = array_search($package->getName(), $packages)) !== FALSE) {
				unset($this->installationMap[$path][$key]);
			}
		}

		$this->cleanup();
		$this->saveInstallationMap();

		parent::uninstall($repo, $package);
	}
public function uninstall ( InstalledRepositoryInterface $ repo , PackageInterface $ package ) { if ( getenv ( 'OPUS_DISABLED' ) ) { parent :: uninstall ( $ repo , $ package ) ; return ; } // // Return immediately if we have no information relevant to our installer // if ( ! $ this -> checkFrameworkSupport ( $ package ) ) { return ; } $ this -> loadInstallationMap ( ) ; foreach ( $ this -> installationMap as $ path => $ packages ) { if ( ( $ key = array_search ( $ package -> getName ( ) , $ packages ) ) !== FALSE ) { unset ( $ this -> installationMap [ $ path ] [ $ key ] ) ; } } $ this -> cleanup ( ) ; $ this -> saveInstallationMap ( ) ; parent :: uninstall ( $ repo , $ package ) ; }
Uninstalls a package

@access public
@param InstalledRepositoryInterface $repo The repository for installed packages
@param PackageInterface $package The package to uninstall
@return void
Uninstalls a package