public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package) { if ($this->solver->isSharedPackage($package)) { if (!$repo->hasPackage($package)) { throw new \InvalidArgumentException('Package is not installed : ' . $package->getPrettyName()); } $this->symlinkInstaller->uninstall($repo, $package); } else { $this->defaultInstaller->uninstall($repo, $package); } }