Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow to pass kernel options and manager options to panther driver #20

Merged
merged 1 commit into from
Mar 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/PantherDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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;
Expand Down