Skip to content
Snippets Groups Projects
Commit 6008fe63 authored by Eirik Morland's avatar Eirik Morland
Browse files

Issue #3363658: Make it possible to save VCS connection data

parent 26cd1db3
No related branches found
No related tags found
1 merge request!18Issue #3363658: Make it possible to save VCS connection data
......@@ -124,6 +124,15 @@ class TeamManager {
return $connections[$provider_id];
}
/**
* Set a specific VCS provider connection.
*/
public function setVcsConnection(TeamNode $node, string $provider_id, $token) {
$connections = $this->getVcsConnections($node);
$connections[$provider_id] = $token;
$this->state->set(self::getVcsProviderStateKey($node), $connections);
}
/**
* Get all of the connections stored on a team.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment