private function registerDefaultWebLoaders()
    {
        if (function_exists('curl_init')) {
            $this->loaders['https'] = new CurlWebLoader('https://');
            $this->loaders['http']  = new CurlWebLoader('http://');
        } else {
            $this->loaders['https'] = new FileGetContentsWebLoader('https://');
            $this->loaders['http']  = new FileGetContentsWebLoader('http://');
        }
    }
private function registerDefaultWebLoaders()
    {
        if (function_exists('curl_init')) {
            $this->loaders['https'] = new CurlWebLoader('https://');
            $this->loaders['http']  = new CurlWebLoader('http://');
        } else {
            $this->loaders['https'] = new FileGetContentsWebLoader('https://');
            $this->loaders['http']  = new FileGetContentsWebLoader('http://');
        }
    }
private function registerDefaultWebLoaders ( ) { if ( function_exists ( 'curl_init' ) ) { $ this -> loaders [ 'https' ] = new CurlWebLoader ( 'https://' ) ; $ this -> loaders [ 'http' ] = new CurlWebLoader ( 'http://' ) ; } else { $ this -> loaders [ 'https' ] = new FileGetContentsWebLoader ( 'https://' ) ; $ this -> loaders [ 'http' ] = new FileGetContentsWebLoader ( 'http://' ) ; } }
Register the default web loaders.  If the curl extension is loaded,
the CurlWebLoader will be used.  Otherwise the FileGetContentsWebLoader
will be used.  You can override this by registering your own loader
for the 'http' and 'https' protocols.
Register the default web loaders . If the curl extension is loaded the CurlWebLoader will be used . Otherwise the FileGetContentsWebLoader will be used . You can override this by registering your own loader for the http and https protocols .