public functionuninstall(InstalledRepositoryInterface $repo, PackageInterface $package) {
if (!$repo->hasPackage($package)) {
thrownew\InvalidArgumentException('Package is not installed: ' . $package);
}
$repo->removePackage($package);
return\React\Promise\resolve(null);
}