mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
Plugins base (#613)
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
This commit is contained in:
@ -13,6 +13,11 @@ class Bitbucket extends AbstractSourceControlProvider
|
||||
{
|
||||
protected string $apiUrl = 'https://api.bitbucket.org/2.0';
|
||||
|
||||
public static function id(): string
|
||||
{
|
||||
return 'bitbucket';
|
||||
}
|
||||
|
||||
public function createRules(array $input): array
|
||||
{
|
||||
return [
|
||||
|
@ -12,6 +12,11 @@ class Github extends AbstractSourceControlProvider
|
||||
{
|
||||
protected string $apiUrl = 'https://api.github.com';
|
||||
|
||||
public static function id(): string
|
||||
{
|
||||
return 'github';
|
||||
}
|
||||
|
||||
public function connect(): bool
|
||||
{
|
||||
try {
|
||||
|
@ -14,6 +14,11 @@ class Gitlab extends AbstractSourceControlProvider
|
||||
|
||||
protected string $apiVersion = 'api/v4';
|
||||
|
||||
public static function id(): string
|
||||
{
|
||||
return 'gitlab';
|
||||
}
|
||||
|
||||
public function createRules(array $input): array
|
||||
{
|
||||
return [
|
||||
|
@ -8,6 +8,8 @@
|
||||
|
||||
interface SourceControlProvider
|
||||
{
|
||||
public static function id(): string;
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $input
|
||||
* @return array<string, mixed>
|
||||
|
Reference in New Issue
Block a user