mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-08 01:12:34 +00:00
Plugins base (#613)
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
This commit is contained in:
@ -10,6 +10,11 @@ class Dropbox extends AbstractStorageProvider
|
||||
{
|
||||
protected string $apiUrl = 'https://api.dropboxapi.com/2';
|
||||
|
||||
public static function id(): string
|
||||
{
|
||||
return 'dropbox';
|
||||
}
|
||||
|
||||
public function validationRules(): array
|
||||
{
|
||||
return [
|
||||
|
@ -8,6 +8,11 @@
|
||||
|
||||
class FTP extends AbstractStorageProvider
|
||||
{
|
||||
public static function id(): string
|
||||
{
|
||||
return 'ftp';
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
|
@ -7,6 +7,11 @@
|
||||
|
||||
class Local extends AbstractStorageProvider
|
||||
{
|
||||
public static function id(): string
|
||||
{
|
||||
return 'local';
|
||||
}
|
||||
|
||||
public function validationRules(): array
|
||||
{
|
||||
return [
|
||||
|
@ -21,6 +21,11 @@ class S3 extends AbstractStorageProvider
|
||||
*/
|
||||
protected array $clientConfig = [];
|
||||
|
||||
public static function id(): string
|
||||
{
|
||||
return 's3';
|
||||
}
|
||||
|
||||
public function getApiUrl(): string
|
||||
{
|
||||
if (isset($this->storageProvider->credentials['api_url']) && $this->storageProvider->credentials['api_url']) {
|
||||
|
@ -7,6 +7,8 @@
|
||||
|
||||
interface StorageProvider
|
||||
{
|
||||
public static function id(): string;
|
||||
|
||||
/**
|
||||
* @return array<string, string>
|
||||
*/
|
||||
|
Reference in New Issue
Block a user