protected function handleSymlink(Builder $builder, $reference, $buildPath)
    {
        if (is_link($buildPath) && is_file($buildPath)) {
            unlink($buildPath);
        }

        $builder->log(sprintf('Symlinking: %s to %s', $reference, $buildPath));

        if (!symlink($reference, $buildPath)) {
            $builder->logFailure('Failed to symlink.');
            return false;
        }

        return true;
    }
protected function handleSymlink(Builder $builder, $reference, $buildPath)
    {
        if (is_link($buildPath) && is_file($buildPath)) {
            unlink($buildPath);
        }

        $builder->log(sprintf('Symlinking: %s to %s', $reference, $buildPath));

        if (!symlink($reference, $buildPath)) {
            $builder->logFailure('Failed to symlink.');
            return false;
        }

        return true;
    }
protected function handleSymlink ( Builder $ builder , $ reference , $ buildPath ) { if ( is_link ( $ buildPath ) && is_file ( $ buildPath ) ) { unlink ( $ buildPath ) ; } $ builder -> log ( sprintf ( 'Symlinking: %s to %s' , $ reference , $ buildPath ) ) ; if ( ! symlink ( $ reference , $ buildPath ) ) { $ builder -> logFailure ( 'Failed to symlink.' ) ; return false ; } return true ; }
Create a symlink if required.
@param Builder $builder
@param $reference
@param $buildPath
@return bool
Create a symlink if required .