Kwf/ComposerExtraAssets/LinkWriter.php
/**
     * Writes a shortcut to the target link in the vendor directory.
     *
     * @param string $target
     */
Writes a shortcut to the target link in the vendor directory.
@param string $target
Writes a shortcut to the target link in the vendor directory . @param string $target
public function writeLink($target)
    {
        $fileName = basename($target);
        $realTarget = realpath($target);
        $relativePathToTarget = $this->makePathRelative(dirname($realTarget), $this->binaryDir).basename($realTarget);
        if (pathinfo($target, PATHINFO_EXTENSION) == "cmd") {
            $this->writeWindows($fileName, $relativePathToTarget);
        } else {
            $this->writeBash($fileName, $relativePathToTarget);
        }
    }
public function writeLink ( $ target ) { $ fileName = basename ( $ target ) ; $ realTarget = realpath ( $ target ) ; $ relativePathToTarget = $ this -> makePathRelative ( dirname ( $ realTarget ) , $ this -> binaryDir ) . basename ( $ realTarget ) ; if ( pathinfo ( $ target , PATHINFO_EXTENSION ) == " cmd " ) { $ this -> writeWindows ( $ fileName , $ relativePathToTarget ) ; } else { $ this -> writeBash ( $ fileName , $ relativePathToTarget ) ; } }
Writes a shortcut to the target link in the vendor directory.
Writes a shortcut to the target link in the vendor directory .
// If Windows cmd link