You are here

public function Installer::getInstallPath in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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

Installer

Namespace

Composer\Installers

Code

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);
}