Composer\Installers
Installer::getInstallPath() public WC 1.0
{@inheritDoc}
{} Это метод класса: Installer{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$Installer = new Installer(); $Installer->getInstallPath( $package );
- $package(Packageчислоerface) (обязательный)
- -
Код Installer::getInstallPath() Installer::getInstallPath WC 5.0.0
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, $this->getIO());
return $installer->getInstallPath($package, $frameworkType);
}