From e3f0a0e43e2601dece69efba5ddae66dc47ba7b3 Mon Sep 17 00:00:00 2001 From: Antonis Flangofas Date: Thu, 14 Oct 2021 15:50:04 +0300 Subject: [PATCH] Pass options to chrome client --- src/Arachnid/Adapters/PantherChromeAdapter.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Arachnid/Adapters/PantherChromeAdapter.php b/src/Arachnid/Adapters/PantherChromeAdapter.php index 2c99dd7..a752308 100644 --- a/src/Arachnid/Adapters/PantherChromeAdapter.php +++ b/src/Arachnid/Adapters/PantherChromeAdapter.php @@ -8,12 +8,12 @@ class PantherChromeAdapter implements CrawlingAdapterInterface { private $client; - - public function __construct() + + public function __construct(array $options) { - $this->client = PantherClient::createChromeClient(); + $this->client = PantherClient::createChromeClient(null, null, $options); } - + public function requestPage($url): Crawler { return $this->client->request('GET', $url);