Skip to content

Commit f36dbd8

Browse files
committed
Merged in digitalkaoz/bitbucket-api/single_entry_point (pull request #21)
single entry point for concrete apis
2 parents 3503ec4 + 55a4338 commit f36dbd8

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)