mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 06:56:15 +00:00
Plugins base (#613)
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
This commit is contained in:
@ -48,7 +48,7 @@ public function create(User $user, Project $project, array $input): ServerProvid
|
||||
|
||||
private static function getProvider(string $name): ServerProviderContract
|
||||
{
|
||||
$providerClass = config('core.server_providers_class.'.$name);
|
||||
$providerClass = config('server-provider.providers.'.$name.'.handler');
|
||||
/** @var ServerProviderContract $provider */
|
||||
$provider = new $providerClass(new ServerProvider, new Server);
|
||||
|
||||
@ -67,7 +67,7 @@ public static function rules(array $input): array
|
||||
],
|
||||
'provider' => [
|
||||
'required',
|
||||
Rule::in(config('core.server_providers')),
|
||||
Rule::in(array_keys(config('server-provider.providers'))),
|
||||
Rule::notIn('custom'),
|
||||
],
|
||||
];
|
||||
|
Reference in New Issue
Block a user