| @@ 85-92 (lines=8) @@ | ||
| 82 | * @param InstalledRepositoryInterface $repo |
|
| 83 | * @param PackageInterface $package |
|
| 84 | */ |
|
| 85 | public function install(InstalledRepositoryInterface $repo, PackageInterface $package) |
|
| 86 | { |
|
| 87 | if ($this->solver->isSharedPackage($package)) { |
|
| 88 | $this->symlinkInstaller->install($repo, $package); |
|
| 89 | } else { |
|
| 90 | $this->defaultInstaller->install($repo, $package); |
|
| 91 | } |
|
| 92 | } |
|
| 93 | ||
| 94 | /** |
|
| 95 | * @param InstalledRepositoryInterface $repo |
|
| @@ 100-107 (lines=8) @@ | ||
| 97 | * |
|
| 98 | * @return bool |
|
| 99 | */ |
|
| 100 | public function isInstalled(InstalledRepositoryInterface $repo, PackageInterface $package) |
|
| 101 | { |
|
| 102 | if ($this->solver->isSharedPackage($package)) { |
|
| 103 | return $this->symlinkInstaller->isInstalled($repo, $package); |
|
| 104 | } |
|
| 105 | ||
| 106 | return $this->defaultInstaller->isInstalled($repo, $package); |
|
| 107 | } |
|
| 108 | ||
| 109 | /** |
|
| 110 | * {@inheritdoc} |
|