You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Bolt.php
+33-6Lines changed: 33 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
3
3
namespaceBolt;
4
4
5
+
useBolt\helpers\Auth;
5
6
useBolt\error\{
6
7
ConnectException,
7
8
PackException,
@@ -180,17 +181,35 @@ private function packProtocolVersions(): string
180
181
181
182
/**
182
183
* Send INIT message
183
-
* @param array $extra You can use helpers\Auth to generate required array
184
+
*
185
+
* @note The usage of $user, $password, $routing and $metadata is deprecated. Please use helpers\Auth to generate an authentication strategy as an array.
186
+
*
187
+
* @param array|string $nameOrExtra You can use helpers\Auth to generate required array or use the deprecated approach to fill in $name, $user and $password
if ($this->connection->connect() && $this->handshake()) {
191
210
if (self::$debug)
192
211
echo'INIT';
193
-
return$this->protocol->init($extra);
212
+
return$this->protocol->init($nameOrExtra);
194
213
}
195
214
196
215
// I don't think it will reach this point, but otherwise I've to end method with return
@@ -199,14 +218,22 @@ public function init(array $extra): array
199
218
200
219
/**
201
220
* Send HELLO message
202
-
* @param array $extra You can use helpers\Auth to generate required array
221
+
*
222
+
* @note The usage of $user, $password, $routing and $metadata is deprecated. Please use helpers\Auth to generate an authentication strategy as an array.
223
+
*
224
+
* @param array|string $nameOrExtra You can use helpers\Auth to generate required array or use the deprecated approach to fill in $name, $user and $password
0 commit comments