We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e57bd8 commit 0b73ff4Copy full SHA for 0b73ff4
src/BigBlueButton.php
@@ -92,8 +92,13 @@ class BigBlueButton
92
/**
93
* @param null|array<string, mixed> $opts
94
*/
95
- public function __construct(?string $baseUrl = null, ?string $secret = null, ?array $opts = []) {
96
- $urlBuilder = UrlBuilder::fromEnvVars($baseUrl, $secret);
+ public function __construct(
+ ?string $baseUrl = null,
97
+ ?string $secret = null,
98
+ ?array $opts = [],
99
+ ?UrlBuilder $urlBuilder = null,
100
+ ) {
101
+ $urlBuilder ??= UrlBuilder::fromEnvVars($baseUrl, $secret);
102
103
// initialize deprecated properties
104
$this->bbbBaseUrl = $urlBuilder->getBaseUrl();
0 commit comments