function symlinkAsUser($target, $link)
    {
        if ($this->exists($link)) {
            $this->unlink($link);
        }

        CommandLineFacade::runAsUser('ln -s '.escapeshellarg($target).' '.escapeshellarg($link));
    }
function symlinkAsUser($target, $link)
    {
        if ($this->exists($link)) {
            $this->unlink($link);
        }

        CommandLineFacade::runAsUser('ln -s '.escapeshellarg($target).' '.escapeshellarg($link));
    }
function symlinkAsUser ( $ target , $ link ) { if ( $ this -> exists ( $ link ) ) { $ this -> unlink ( $ link ) ; } CommandLineFacade :: runAsUser ( 'ln -s ' . escapeshellarg ( $ target ) . ' ' . escapeshellarg ( $ link ) ) ; }
Create a symlink to the given target for the non-root user.

This uses the command line as PHP can't change symlink permissions.

@param  string  $target
@param  string  $link
@return void
Create a symlink to the given target for the non - root user .