Plugins base (#613)

* wip

* wip

* cleanup

* notification channels

* phpstan

* services

* remove server types

* refactoring

* refactoring
This commit is contained in:
Saeed Vaziry
2025-06-14 14:35:18 +02:00
committed by GitHub
parent adc0653d15
commit 131b828807
311 changed files with 3976 additions and 2660 deletions

View File

@ -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 [

View File

@ -8,6 +8,11 @@
class FTP extends AbstractStorageProvider
{
public static function id(): string
{
return 'ftp';
}
/**
* @return array<string, mixed>
*/

View File

@ -7,6 +7,11 @@
class Local extends AbstractStorageProvider
{
public static function id(): string
{
return 'local';
}
public function validationRules(): array
{
return [

View File

@ -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']) {

View File

@ -7,6 +7,8 @@
interface StorageProvider
{
public static function id(): string;
/**
* @return array<string, string>
*/