1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Consigliere\Components\Providers; |
4
|
|
|
|
5
|
|
|
use Illuminate\Support\ServiceProvider; |
6
|
|
|
use Consigliere\Components\Commands\MakeCommandCommand; |
7
|
|
|
use Consigliere\Components\Commands\MakeControllerCommand; |
8
|
|
|
use Consigliere\Components\Commands\DisableCommand; |
9
|
|
|
use Consigliere\Components\Commands\DumpCommand; |
10
|
|
|
use Consigliere\Components\Commands\EnableCommand; |
11
|
|
|
use Consigliere\Components\Commands\GenerateEventCommand; |
12
|
|
|
use Consigliere\Components\Commands\GenerateJobCommand; |
13
|
|
|
use Consigliere\Components\Commands\GenerateListenerCommand; |
14
|
|
|
use Consigliere\Components\Commands\GenerateMailCommand; |
15
|
|
|
use Consigliere\Components\Commands\GenerateMiddlewareCommand; |
16
|
|
|
use Consigliere\Components\Commands\GenerateNotificationCommand; |
17
|
|
|
use Consigliere\Components\Commands\GenerateProviderCommand; |
18
|
|
|
use Consigliere\Components\Commands\GenerateRouteProviderCommand; |
19
|
|
|
use Consigliere\Components\Commands\InstallCommand; |
20
|
|
|
use Consigliere\Components\Commands\ListCommand; |
21
|
|
|
use Consigliere\Components\Commands\MakeCommand; |
22
|
|
|
use Consigliere\Components\Commands\MakeRequestCommand; |
23
|
|
|
use Consigliere\Components\Commands\MigrateCommand; |
24
|
|
|
use Consigliere\Components\Commands\MigrateRefreshCommand; |
25
|
|
|
use Consigliere\Components\Commands\MigrateResetCommand; |
26
|
|
|
use Consigliere\Components\Commands\MigrateRollbackCommand; |
27
|
|
|
use Consigliere\Components\Commands\MigrationCommand; |
28
|
|
|
use Consigliere\Components\Commands\ModelCommand; |
29
|
|
|
use Consigliere\Components\Commands\PublishAssetCommand; |
30
|
|
|
use Consigliere\Components\Commands\PublishConfigurationCommand; |
31
|
|
|
use Consigliere\Components\Commands\PublishMigrationCommand; |
32
|
|
|
use Consigliere\Components\Commands\PublishTranslationCommand; |
33
|
|
|
use Consigliere\Components\Commands\SeedCommand; |
34
|
|
|
use Consigliere\Components\Commands\SeedMakeCommand; |
35
|
|
|
use Consigliere\Components\Commands\SetupCommand; |
36
|
|
|
use Consigliere\Components\Commands\UpdateCommand; |
37
|
|
|
use Consigliere\Components\Commands\UseCommand; |
38
|
|
|
use Consigliere\Components\Commands\PublishSeedCommand; |
39
|
|
|
|
40
|
|
|
class ConsoleServiceProvider extends ServiceProvider |
41
|
|
|
{ |
42
|
|
|
protected $defer = false; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* The available commands |
46
|
|
|
* |
47
|
|
|
* @var array |
48
|
|
|
*/ |
49
|
|
|
protected $commands |
50
|
|
|
= [ |
51
|
|
|
MakeCommand::class, |
52
|
|
|
MakeCommandCommand::class, |
53
|
|
|
MakeControllerCommand::class, |
54
|
|
|
DisableCommand::class, |
55
|
|
|
EnableCommand::class, |
56
|
|
|
GenerateEventCommand::class, |
57
|
|
|
GenerateListenerCommand::class, |
58
|
|
|
GenerateMiddlewareCommand::class, |
59
|
|
|
GenerateProviderCommand::class, |
60
|
|
|
GenerateRouteProviderCommand::class, |
61
|
|
|
InstallCommand::class, |
62
|
|
|
ListCommand::class, |
63
|
|
|
MigrateCommand::class, |
64
|
|
|
MigrateRefreshCommand::class, |
65
|
|
|
MigrateResetCommand::class, |
66
|
|
|
MigrateRollbackCommand::class, |
67
|
|
|
MigrationCommand::class, |
68
|
|
|
ModelCommand::class, |
69
|
|
|
PublishAssetCommand::class, |
70
|
|
|
PublishMigrationCommand::class, |
71
|
|
|
PublishTranslationCommand::class, |
72
|
|
|
SeedCommand::class, |
73
|
|
|
SeedMakeCommand::class, |
74
|
|
|
SetupCommand::class, |
75
|
|
|
UpdateCommand::class, |
76
|
|
|
UseCommand::class, |
77
|
|
|
DumpCommand::class, |
78
|
|
|
MakeRequestCommand::class, |
79
|
|
|
PublishConfigurationCommand::class, |
80
|
|
|
GenerateJobCommand::class, |
81
|
|
|
GenerateMailCommand::class, |
82
|
|
|
GenerateNotificationCommand::class, |
83
|
|
|
PublishSeedCommand::class, |
84
|
|
|
]; |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* Register the commands. |
88
|
|
|
*/ |
89
|
|
|
public function register() |
90
|
|
|
{ |
91
|
|
|
$this->commands($this->commands); |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
/** |
95
|
|
|
* @return array |
96
|
|
|
*/ |
97
|
|
|
public function provides() |
98
|
|
|
{ |
99
|
|
|
$provides = $this->commands; |
100
|
|
|
|
101
|
|
|
return $provides; |
102
|
|
|
} |
103
|
|
|
} |
104
|
|
|
|