Skip to content

Commit a0c9b7f

Browse files
authored
Merge pull request #1 from denis-b/curl-options
Pass Curl options
2 parents 42e9455 + 145f3d6 commit a0c9b7f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/BigBlueButton.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,14 @@ class BigBlueButton
6565
* @param null $baseUrl
6666
* @param null $secret
6767
*/
68-
public function __construct($baseUrl = null, $secret = null)
68+
public function __construct($baseUrl = null, $secret = null, $opts = null)
6969
{
7070
// Keeping backward compatibility with older deployed versions
7171
// BBB_SECRET is the new variable name and have higher priority against the old named BBB_SECURITY_SALT
7272
$this->securitySecret = $secret ?: getenv('BBB_SECRET') ?: getenv('BBB_SECURITY_SALT');
7373
$this->bbbServerBaseUrl = $baseUrl ?: getenv('BBB_SERVER_BASE_URL');
7474
$this->urlBuilder = new UrlBuilder($this->securitySecret, $this->bbbServerBaseUrl);
75+
$this->curlopts = $opts['curl'] ?? [];
7576
}
7677

7778
/**
@@ -396,6 +397,14 @@ public function setJSessionId($jSessionId)
396397
$this->jSessionId = $jSessionId;
397398
}
398399

400+
/**
401+
* @param array $curlopts
402+
*/
403+
public function setCurlOpts($curlopts)
404+
{
405+
$this->curlopts = $curlopts;
406+
}
407+
399408
/* ____________________ INTERNAL CLASS METHODS ___________________ */
400409

401410
/**

0 commit comments

Comments
 (0)