Skip to content

Commit 5868111

Browse files
added metada also to hello alias
1 parent a857963 commit 5868111

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Bolt.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,13 @@ public function init(string $name, string $user, string $password, array $routin
233233
<pre>null - the server should not carry out routing
234234
[] - the server should carry out routing
235235
['address' => 'ip:port'] - the server should carry out routing according to the given routing context</pre>
236+
* @param array $metadata Server success response metadata
236237
* @return bool
237238
* @throws Exception
238239
*/
239-
public function hello(string $name, string $user, string $password, array $routing = null): bool
240+
public function hello(string $name, string $user, string $password, array $routing = null, array &$metadata = []): bool
240241
{
241-
return $this->init($name, $user, $password, $routing);
242+
return $this->init($name, $user, $password, $routing, $metadata);
242243
}
243244

244245
/**

0 commit comments

Comments
 (0)