public function Installer::getInstallPath in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/composer/installers/src/Composer/Installers/Installer.php \Composer\Installers\Installer::getInstallPath()
1 call to Installer::getInstallPath()
- Installer::uninstall in vendor/
composer/ installers/ src/ Composer/ Installers/ Installer.php
File
- vendor/
composer/ installers/ src/ Composer/ Installers/ Installer.php, line 76
Class
Namespace
Composer\InstallersCode
public function getInstallPath(PackageInterface $package) {
$type = $package
->getType();
$frameworkType = $this
->findFrameworkType($type);
if ($frameworkType === false) {
throw new \InvalidArgumentException('Sorry the package type of this package is not yet supported.');
}
$class = 'Composer\\Installers\\' . $this->supportedTypes[$frameworkType];
$installer = new $class($package, $this->composer);
return $installer
->getInstallPath($package, $frameworkType);
}