-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlugin.php
More file actions
31 lines (27 loc) · 1.02 KB
/
Copy pathPlugin.php
File metadata and controls
31 lines (27 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
namespace App\Vito\Plugins\Mrmaddotta\VitoGitlabSelfHosted;
class Plugin extends \App\Plugins\AbstractPlugin
{
protected string $name = 'Gitlab Self Hosted P24';
protected string $description = 'An example plugin template for vito plugins';
public function boot(): void
{
\App\Plugins\RegisterSourceControl::make('gitlab-self-hosted')
->label('Self Hosted Gitlab')
->handler(\App\Vito\Plugins\Mrmaddotta\VitoGitlabSelfHosted\Bonnie::class)
->form(
\App\DTOs\DynamicForm::make([
\App\DTOs\DynamicField::make('token')
->text()
->label('Personal Access Token'),
\App\DTOs\DynamicField::make('url')
->text()
->label('URL'),
\App\DTOs\DynamicField::make('port')
->text()
->label('Port'),
])
)
->register();
}
}