/**
* Gets the installed path for a package.
*
* @param \Composer\Package\PackageInterface $package
* The package.
*
* @return string
* Path to the install path for the package, relative to the project. This
* accounts for changes made by composer/installers, if any.
*/
protected function getInstallPathForPackage(PackageInterface
$package) { return $this->composer->
getInstallationManager()->
getInstallPath($package);
} /**
* Clean all configured packages.
*
* This applies in the context of a post-command event.
*/
public function cleanAllPackages() { // Get a list of all the packages available after the update or install
// command.
$installed_packages =
[];