From 77d70c27da45ef10bc901a0975a5f24a578665c9 Mon Sep 17 00:00:00 2001 From: Phil Burton Date: Tue, 11 Jun 2019 14:46:00 +0100 Subject: Add custom curlInterface implementation and comment out the verbose option --- src/Etym.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Etym.php') diff --git a/src/Etym.php b/src/Etym.php index 1098021..10e22d7 100644 --- a/src/Etym.php +++ b/src/Etym.php @@ -2,6 +2,7 @@ namespace App; +use App\Curl; use PHPHtmlParser\Dom; /** @@ -43,7 +44,7 @@ class Etym $targetURL = $this->baseURL . $input; $dom = new Dom; - $dom->load($targetURL); + $dom->loadFromUrl($targetURL, [], new Curl); $html = $dom->find($this->domSearch); if (!$html instanceof \PHPHtmlParser\Dom\Collection || count($html) <= 0) { -- cgit v1.2.3