-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProvider.php
More file actions
69 lines (58 loc) · 1.42 KB
/
Provider.php
File metadata and controls
69 lines (58 loc) · 1.42 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
60
61
62
63
64
65
66
67
68
69
<?php
namespace Neuron\Cms\Cli;
use Neuron\Cli\Commands\Registry;
/**
* CLI provider for the CMS component.
* Registers all CMS-related CLI commands.
*/
class Provider
{
/**
* Register CMS commands with the CLI registry
*
* @param Registry $registry CLI Registry instance
* @return void
*/
public static function register( Registry $registry ): void
{
// Installation commands
$registry->register(
'cms:install',
'Neuron\\Cms\\Cli\\Commands\\Install\\InstallCommand'
);
$registry->register(
'cms:upgrade',
'Neuron\\Cms\\Cli\\Commands\\Install\\UpgradeCommand'
);
// User management commands
$registry->register(
'cms:user:create',
'Neuron\\Cms\\Cli\\Commands\\User\\CreateCommand'
);
$registry->register(
'cms:user:list',
'Neuron\\Cms\\Cli\\Commands\\User\\ListCommand'
);
$registry->register(
'cms:user:delete',
'Neuron\\Cms\\Cli\\Commands\\User\\DeleteCommand'
);
$registry->register(
'cms:user:reset-password',
'Neuron\\Cms\\Cli\\Commands\\User\\ResetPasswordCommand'
);
// Maintenance mode commands
$registry->register(
'cms:maintenance:enable',
'Neuron\\Cms\\Cli\\Commands\\Maintenance\\EnableCommand'
);
$registry->register(
'cms:maintenance:disable',
'Neuron\\Cms\\Cli\\Commands\\Maintenance\\DisableCommand'
);
$registry->register(
'cms:maintenance:status',
'Neuron\\Cms\\Cli\\Commands\\Maintenance\\StatusCommand'
);
}
}