protected function BitbucketManager::getAuth in Build Hooks 8.2
Same name and namespace in other branches
- 3.x modules/build_hooks_bitbucket/src/BitbucketManager.php \Drupal\build_hooks_bitbucket\BitbucketManager::getAuth()
Get the authentication headers for the request.
Return value
array A list of username,password suitable for passing to guzzle.
2 calls to BitbucketManager::getAuth()
- BitbucketManager::getBuildHookDetailsForPluginConfiguration in modules/
build_hooks_bitbucket/ src/ BitbucketManager.php - Converts hook configuration into an api call.
- BitbucketManager::retrieveLatestBuilds in modules/
build_hooks_bitbucket/ src/ BitbucketManager.php - Get the latest builds from bitbucket pipelines.
File
- modules/
build_hooks_bitbucket/ src/ BitbucketManager.php, line 64
Class
- BitbucketManager
- Service for managing BitBucket connection details.
Namespace
Drupal\build_hooks_bitbucketCode
protected function getAuth() {
return [
$this->config
->get('username'),
$this->config
->get('password'),
];
}