/** * Use a curl interface implementation to attempt to load * the content from a url. * * @param string $url * @param array $option * @param CurlInterface $curl * @chainable */ public function loadFromUrl($url, $options = [], CurlInterface $curl = null) { if (is_null($curl)) { // use the default curl interface $curl = new Curl(); } $content = $curl->get($url); return $this->loadStr($content, $options); }