Commit b50035c2 authored by Denis Bonnenfant's avatar Denis Bonnenfant
Browse files

pass curl options

parent e07218ea
......@@ -60,13 +60,13 @@ class BigBlueButton
protected $urlBuilder;
protected $jSessionId;
public function __construct($curlopts)
public function __construct($opts = [])
{
// Keeping backward compatibility with older deployed versions
$this->securitySecret = (getenv('BBB_SECURITY_SALT') === false) ? getenv('BBB_SECRET') : $this->securitySecret = getenv('BBB_SECURITY_SALT');
$this->bbbServerBaseUrl = getenv('BBB_SERVER_BASE_URL');
$this->urlBuilder = new UrlBuilder($this->securitySecret, $this->bbbServerBaseUrl);
$this->curlopts = $curlopts;
$this->curlopts = $opts['curl'] ?? [];
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment