Skip to content

Commit

Permalink
Pass options to chrome client
Browse files Browse the repository at this point in the history
  • Loading branch information
flangofas committed Oct 14, 2021
1 parent 9c1e553 commit e3f0a0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Arachnid/Adapters/PantherChromeAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e3f0a0e

Please sign in to comment.