Platformsh\Cli\Helper\FilesystemHelper::setRelativeLinks PHP Méthode

    public function setRelativeLinks($relative = true)
    {
        // This is not possible on Windows.
        if ($this->isWindows()) {
            $relative = false;
        }
        $this->relative = $relative;
    }

Usage Example

 /**
  * @inheritdoc
  */
 public function prepare($buildDir, $appRoot, $projectRoot, array $settings)
 {
     $this->appRoot = $appRoot;
     $this->projectRoot = $projectRoot;
     $this->settings = $settings;
     $this->buildDir = $buildDir;
     $this->absoluteLinks = !empty($settings['absoluteLinks']);
     $this->fsHelper->setRelativeLinks(!$this->absoluteLinks);
 }
All Usage Examples Of Platformsh\Cli\Helper\FilesystemHelper::setRelativeLinks