Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/MagentoHackathon/Composer/Magento/Installer/CoreInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,24 @@ public function getDeployStrategy(PackageInterface $package, $strategy = null)
$deployStrategy->setIsForced($this->isForced);
return $deployStrategy;
}

/**
* Returns the installation path of a package
* We don't use the parent class for this because Magento Core should never be installed in the modman-root-dir
*
* @param PackageInterface $package
* @return string path
*/
public function getInstallPath(PackageInterface $package)
{
$targetDir = $package->getTargetDir();
$installPath = $this->getPackageBasePath($package) . ($targetDir ? '/'.$targetDir : '');

// Make install path absolute. This is needed in the symlink deploy strategies.
if (DIRECTORY_SEPARATOR !== $installPath[0] && $installPath[1] !== ':') {
$installPath = getcwd() . "/$installPath";
}

return $installPath;
}
}