From 6c886e7c386b0ad28bd25707aeb7305813006b0a Mon Sep 17 00:00:00 2001 From: Pierre Hennequart Date: Tue, 9 Mar 2021 16:22:13 +0100 Subject: [PATCH] allow to pass all panther options to panther driver --- src/PantherDriver.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/PantherDriver.php b/src/PantherDriver.php index be30b0e..98af635 100644 --- a/src/PantherDriver.php +++ b/src/PantherDriver.php @@ -52,11 +52,19 @@ class PantherDriver extends CoreDriver private $removeHostFromUrl = false; /** @var array */ private $options; + /** @var array */ + private $kernelOptions; + /** @var array */ + private $managerOptions; public function __construct( - array $options = [] + array $options = [], + array $kernelOptions = [], + array $managerOptions = [] ) { $this->options = $options; + $this->kernelOptions = $kernelOptions; + $this->managerOptions = $managerOptions; } /** @@ -110,7 +118,7 @@ public function setRemoveScriptFromUrl($remove = true) */ public function start() { - $this->client = self::createPantherClient($this->options); + $this->client = self::createPantherClient($this->options, $this->kernelOptions, $this->managerOptions); $this->client->start(); $this->started = true;