Skip to content

Commit 55a4338

Browse files
committed
single entry point for concrete apis
1 parent 3503ec4 commit 55a4338

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/Bitbucket/API/Api.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,17 @@ protected function processResponse(MessageInterface $response)
266266
}
267267
}
268268

269+
/**
270+
* @param string $name
271+
* @return Api
272+
*
273+
* @throws \InvalidArgumentException
274+
*/
275+
public function api($name)
276+
{
277+
return $this->childFactory($name);
278+
}
279+
269280
/**
270281
* Factory for child classes
271282
*

0 commit comments

Comments
 (0)