LEtudiant\Composer\Installer\Config\SharedPackageInstallerConfig::getSymlinkBasePath PHP Method

getSymlinkBasePath() public method

public getSymlinkBasePath ( ) : string | null
return string | null
    public function getSymlinkBasePath()
    {
        return $this->symlinkBasePath;
    }

Usage Example

 /**
  * @param PackageInterface $package
  *
  * @return string
  */
 protected function getSymlinkSourcePath(PackageInterface $package)
 {
     if (null != $this->config->getSymlinkBasePath()) {
         $targetDir = $package->getTargetDir();
         $sourcePath = $this->config->getSymlinkBasePath() . '/' . $package->getPrettyName() . '/' . $package->getPrettyVersion() . ($targetDir ? '/' . $targetDir : '');
     } else {
         $sourcePath = $this->getInstallPath($package);
     }
     return $sourcePath;
 }