summaryrefslogtreecommitdiff
path: root/src/Etym.php
diff options
context:
space:
mode:
authorPhil Burton <phil@d3r.com>2019-06-11 14:46:00 +0100
committerPhil Burton <phil@d3r.com>2019-06-11 14:46:00 +0100
commit77d70c27da45ef10bc901a0975a5f24a578665c9 (patch)
tree4f42e418e62c19c3c7605c7bcadf8a1797a7cbf9 /src/Etym.php
parent5ddc2b35b37f02270015626c7e3d3876dd0eca21 (diff)
Add custom curlInterface implementation and comment out the verbose option
Diffstat (limited to 'src/Etym.php')
-rw-r--r--src/Etym.php3
1 files changed, 2 insertions, 1 deletions
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) {