/**
* @param InstalledRepositoryInterface $repo
* @param PackageInterface $package
*/
public function install(InstalledRepositoryInterface $repo, PackageInterface $package)
{
if (!is_readable($this->getInstallPath($package))) {
parent::install($repo, $package);
} elseif (!$repo->hasPackage($package)) {
$this->binaryInstaller->installBinaries($package, $this->getInstallPath($package));
$repo->addPackage(clone $package);
}
$this->createPackageVendorSymlink($package);
$this->packageDataManager->addPackageUsage($package);
}