public function resolve($path, $baseFolder)
    {
        if (!is_string($path)) {
            return '';
        }
        if (stripos($path, 'file://') === 0) {
            $path = substr($path, 7);
        }
        if ($path === '') {
            return '';
        }
        if (preg_match('_^\w\w+://_', $path)) {
            return $this->resolveRemotePath($path);
        }

        return $this->resolveLocalPath($path, $baseFolder);
    }