File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments