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

isSymlinkEnabled() public method

public isSymlinkEnabled ( ) : boolean
return boolean
    public function isSymlinkEnabled()
    {
        return $this->isSymlinkEnabled;
    }

Usage Example

 /**
  * @param PackageInterface $package
  *
  * @throws FilesystemException
  */
 protected function removePackageVendorSymlink(PackageInterface $package)
 {
     if ($this->config->isSymlinkEnabled() && $this->filesystem->removeSymlink($this->getPackageVendorSymlink($package))) {
         $this->io->write(array('  - Deleting symlink for <info>' . $package->getPrettyName() . '</info> ' . '(<fg=yellow>' . $package->getPrettyVersion() . '</fg=yellow>)', ''));
         $symlinkParentDirectory = dirname($this->getPackageVendorSymlink($package));
         $this->filesystem->removeEmptyDirectory($symlinkParentDirectory);
     }
 }