Skip to content

Commit

Permalink
added metada also to hello alias
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanak-michal authored Jul 15, 2021
1 parent a857963 commit 5868111
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Bolt.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,12 +233,13 @@ public function init(string $name, string $user, string $password, array $routin
<pre>null - the server should not carry out routing
[] - the server should carry out routing
['address' => 'ip:port'] - the server should carry out routing according to the given routing context</pre>
* @param array $metadata Server success response metadata
* @return bool
* @throws Exception
*/
public function hello(string $name, string $user, string $password, array $routing = null): bool
public function hello(string $name, string $user, string $password, array $routing = null, array &$metadata = []): bool
{
return $this->init($name, $user, $password, $routing);
return $this->init($name, $user, $password, $routing, $metadata);
}

/**
Expand Down

0 comments on commit 5868111

Please sign in to comment.