public static function createSymbolicLink(string $link, string $target) : void
    {
        $exception = null;

        try {
            $success = ErrorCatcher::run(static function() use ($link, $target) {
                return symlink($target, $link);
            });

            if ($success === true) {
                return;
            }
        } catch (\ErrorException $e) {
            $exception = $e;
        }

        throw new IoException('Error creating symbolic link ' . $link . ' to ' . $target, 0, $exception);
    }
public static function createSymbolicLink(string $link, string $target) : void
    {
        $exception = null;

        try {
            $success = ErrorCatcher::run(static function() use ($link, $target) {
                return symlink($target, $link);
            });

            if ($success === true) {
                return;
            }
        } catch (\ErrorException $e) {
            $exception = $e;
        }

        throw new IoException('Error creating symbolic link ' . $link . ' to ' . $target, 0, $exception);
    }
public static function createSymbolicLink ( string $ link , string $ target ) : void { $ exception = null ; try { $ success = ErrorCatcher :: run ( static function ( ) use ( $ link , $ target ) { return symlink ( $ target , $ link ) ; } ) ; if ( $ success === true ) { return ; } } catch ( \ ErrorException $ e ) { $ exception = $ e ; } throw new IoException ( 'Error creating symbolic link ' . $ link . ' to ' . $ target , 0 , $ exception ) ; }
Creates a symbolic link to a target.

@param string $link   The path of the symbolic link to create.
@param string $target The target of the symbolic link.

@return void

@throws IoException If an error occurs.
Creates a symbolic link to a target .