panzella/daniel/bitbucket-api-bundle

Bitbucket API 客户端的一个工具包

v1.1 2017-07-17 00:26 UTC

This package is not auto-updated.

Last update: 2024-09-29 02:13:32 UTC


README

这是一个用于 Bitbucket API 客户端的 Symfony 工具包 (https://bitbucket.org/gentlero/bitbucket-api)。

配置

bitbucket_api:
    client_id: < OAuth2 Client ID >
    client_secret: < OAuth2 Client Secret >

通过服务 ID 访问服务

从容器中通过服务 ID

$this->get('Bitbucket\API\Api');

Symfony 3.3+ 自动装配

public function __construct(\Bitbucket\API\Api $bitbucketApi)
{
    $this->bitbucketApi = $bitbucketApi;
}