src/Http/ChromeClient.php 1 location
|
@@ 22-26 (lines=5) @@
|
| 19 |
|
{ |
| 20 |
|
if ($nocache) { |
| 21 |
|
$this->chromeClient = new phmChromeClient($host, $port); |
| 22 |
|
} else { |
| 23 |
|
$chromeClient = new phmChromeClient($host, $port); |
| 24 |
|
$cachedClient = new FileCacheDecorator($chromeClient); |
| 25 |
|
$this->chromeClient = new LoggerDecorator($cachedClient); |
| 26 |
|
} |
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
public function sendRequest(RequestInterface $request) |
src/Http/HeadlessChromeClient.php 1 location
|
@@ 20-26 (lines=7) @@
|
| 17 |
|
|
| 18 |
|
public function init($nocache = false) |
| 19 |
|
{ |
| 20 |
|
if ($nocache) { |
| 21 |
|
$this->chromeClient = new HeadlessChrome(); |
| 22 |
|
} else { |
| 23 |
|
$chromeClient = new HeadlessChrome(); |
| 24 |
|
$cachedClient = new FileCacheDecorator($chromeClient); |
| 25 |
|
$this->chromeClient = new LoggerDecorator($cachedClient); |
| 26 |
|
} |
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
public function sendRequest(RequestInterface $request) |