Skip to content

Commit 9b080cd

Browse files
author
Hugo Fonseca
committed
child factory should pass on the client
1 parent 0c36dbc commit 9b080cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Bitbucket/API/Api.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ protected function childFactory($name)
295295
/** @var Api $child */
296296
$class = '\\Bitbucket\\API\\'.$name;
297297
$child = new $class($this->client);
298+
$child->setClient($this->getClient());
298299

299300
if ($this->getClient()->hasListeners()) {
300301
$child->getClient()->setListeners($this->getClient()->getListeners());

0 commit comments

Comments
 (0)