-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProvider.php
More file actions
59 lines (51 loc) · 1.83 KB
/
Copy pathProvider.php
File metadata and controls
59 lines (51 loc) · 1.83 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
declare(strict_types=1);
namespace Plugins\DevTools;
use AlfacodeTeam\PhpServicePlatform\Kernel\Contracts\ModuleContract;
use AlfacodeTeam\PhpServicePlatform\Kernel\Container\ModuleContainer;
use AlfacodeTeam\PhpServicePlatform\Kernel\Events\EventBus;
use AlfacodeTeam\PhpServicePlatform\Kernel\Pipelines\Cli\CliPipeline;
use AlfacodeTeam\PhpServicePlatform\Kernel\Pipelines\Http\HttpPipeline;
use AlfacodeTeam\PhpServicePlatform\Kernel\Pipelines\Worker\WorkerPipeline;
use Plugins\DevTools\Commands\MakePluginCommand;
use Plugins\DevTools\Commands\MakeServiceCommand;
use Plugins\DevTools\Commands\ModuleListCommand;
use Plugins\DevTools\Commands\ModuleInfoCommand;
use Plugins\DevTools\Commands\ProjectListCommand;
use Plugins\DevTools\Commands\RoutesListCommand;
/**
* DevTools plugin — GDA scaffolding generators (make:plugin, make:service).
*
* Pure developer tooling: no domain, no routes. Registers CLI commands that
* emit GDA-compliant skeletons so new plugins follow the architecture by
* default.
*/
final class Provider implements ModuleContract
{
public function solves(): string
{
return 'dev.tooling';
}
/** @return list<class-string> */
public function requires(): array
{
return [];
}
/** @return list<class-string> */
public function exposes(): array
{
return [];
}
public function register(ModuleContainer $container): void
{
}
public function boot(HttpPipeline $http, CliPipeline $cli, WorkerPipeline $worker, EventBus $events): void
{
$cli->command(MakePluginCommand::class);
$cli->command(MakeServiceCommand::class);
$cli->command(ModuleListCommand::class);
$cli->command(ModuleInfoCommand::class);
$cli->command(RoutesListCommand::class);
$cli->command(ProjectListCommand::class);
}
}