Symfony\Component\Filesystem\Filesystem::symlink
Creates a symbolic link or copy a directory.
Signature
public function symlink(string
$originDir,
[string
$targetDir = false,
[Boolean
$copyOnWindows = false]] )
Parameters
$originDir
— string- The origin directory path
$targetDir
— string- The symbolic link name
$copyOnWindows
— object- Whether to copy files if on Windows
Errors/Exceptions
-
IOException
- When symlink fails