public function symlink($target, $link)
    {
        if (!file_exists($target)) {
            throw new \InvalidArgumentException('Target not found: ' . $target);
        }
        if ($this->relative) {
            $target = $this->makePathRelative($target, dirname($link));
        }
        $this->fs->symlink($target, $link, $this->copyOnWindows);
    }
public function symlink($target, $link)
    {
        if (!file_exists($target)) {
            throw new \InvalidArgumentException('Target not found: ' . $target);
        }
        if ($this->relative) {
            $target = $this->makePathRelative($target, dirname($link));
        }
        $this->fs->symlink($target, $link, $this->copyOnWindows);
    }
public function symlink ( $ target , $ link ) { if ( ! file_exists ( $ target ) ) { throw new \ InvalidArgumentException ( 'Target not found: ' . $ target ) ; } if ( $ this -> relative ) { $ target = $ this -> makePathRelative ( $ target , dirname ( $ link ) ) ; } $ this -> fs -> symlink ( $ target , $ link , $ this -> copyOnWindows ) ; }
Create a symbolic link to a file or directory.

@param string $target The target to link to (must already exist).
@param string $link   The name of the symbolic link.
Create a symbolic link to a file or directory .