public function createLink(ConsoleIo $io, $source, $dest)
    {
        if ($this->verboseIfFileExists($io, $dest)) {
            return false;
        }

        //Checks if the source is readable and the destination directory is writable
        try {
            is_readable_or_fail($source);
            is_writable_or_fail(dirname($dest));
        } catch (Exception $e) {
            $io->error($e->getMessage());

            return false;
        }

        symlink($source, $dest);
        $io->verbose(__d('me_tools', 'Link `{0}` has been created', rtr($dest)));

        return true;
    }
public function createLink(ConsoleIo $io, $source, $dest)
    {
        if ($this->verboseIfFileExists($io, $dest)) {
            return false;
        }

        //Checks if the source is readable and the destination directory is writable
        try {
            is_readable_or_fail($source);
            is_writable_or_fail(dirname($dest));
        } catch (Exception $e) {
            $io->error($e->getMessage());

            return false;
        }

        symlink($source, $dest);
        $io->verbose(__d('me_tools', 'Link `{0}` has been created', rtr($dest)));

        return true;
    }
public function createLink ( ConsoleIo $ io , $ source , $ dest ) { if ( $ this -> verboseIfFileExists ( $ io , $ dest ) ) { return false ; } //Checks if the source is readable and the destination directory is writable try { is_readable_or_fail ( $ source ) ; is_writable_or_fail ( dirname ( $ dest ) ) ; } catch ( Exception $ e ) { $ io -> error ( $ e -> getMessage ( ) ) ; return false ; } symlink ( $ source , $ dest ) ; $ io -> verbose ( __d ( 'me_tools' , 'Link `{0}` has been created' , rtr ( $ dest ) ) ) ; return true ; }
Creates a symbolic link
@param ConsoleIo $io The console io
@param string $source Source file or directory
@param string $dest Destination file or directory
@return bool
Creates a symbolic link