File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -61,11 +61,17 @@ class BigBlueButton
6161 protected $ urlBuilder ;
6262 protected $ jSessionId ;
6363
64- public function __construct ()
64+ /**
65+ * BigBlueButton constructor.
66+ * @param null $baseUrl
67+ * @param null $secret
68+ */
69+ public function __construct ($ baseUrl = null , $ secret = null )
6570 {
6671 // Keeping backward compatibility with older deployed versions
67- $ this ->securitySecret = (getenv ('BBB_SECURITY_SALT ' ) === false ) ? getenv ('BBB_SECRET ' ) : $ this ->securitySecret = getenv ('BBB_SECURITY_SALT ' );
68- $ this ->bbbServerBaseUrl = getenv ('BBB_SERVER_BASE_URL ' );
72+ // BBB_SECRET is the new variable name and have higher priority against the old named BBB_SECURITY_SALT
73+ $ this ->securitySecret = $ secret ?: getenv ('BBB_SECRET ' ) ?: getenv ('BBB_SECURITY_SALT ' );
74+ $ this ->bbbServerBaseUrl = $ baseUrl ?: getenv ('BBB_SERVER_BASE_URL ' );
6975 $ this ->urlBuilder = new UrlBuilder ($ this ->securitySecret , $ this ->bbbServerBaseUrl );
7076 }
7177
You can’t perform that action at this time.
0 commit comments