You are here

public function BitbucketManager::__construct in Build Hooks 8.2

Same name and namespace in other branches
  1. 3.x modules/build_hooks_bitbucket/src/BitbucketManager.php \Drupal\build_hooks_bitbucket\BitbucketManager::__construct()

Constructs a BitbucketManager object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\GuzzleHttp\ClientInterface $http_client: HTTP client.

File

modules/build_hooks_bitbucket/src/BitbucketManager.php, line 40

Class

BitbucketManager
Service for managing BitBucket connection details.

Namespace

Drupal\build_hooks_bitbucket

Code

public function __construct(ConfigFactoryInterface $config_factory, ClientInterface $http_client) {
  $this->config = $config_factory
    ->get('build_hooks_bitbucket.settings');
  $this->httpClient = $http_client;
}