1 | <?php |
||
8 | class GeneratorCommandRegistrar |
||
9 | { |
||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | protected static $commands = [ |
||
14 | // make: |
||
15 | 'command+.command.make' => Console\CommandMakeCommand::class, |
||
16 | 'command+.controller.make' => Console\ControllerMakeCommand::class, |
||
17 | 'command+.event.make' => Console\EventMakeCommand::class, |
||
18 | 'command+.job.make' => Console\JobMakeCommand::class, |
||
19 | 'command+.listener.make' => Console\ListenerMakeCommand::class, |
||
20 | 'command+.mail.make' => Console\MailMakeCommand::class, |
||
21 | 'command+.middleware.make' => Console\MiddlewareMakeCommand::class, |
||
22 | 'command+.migration.make' => Database\Console\MigrationMakeCommand::class, |
||
23 | 'command+.model.make' => Console\ModelMakeCommand::class, |
||
24 | 'command+.notification.make' => Console\NotificationMakeCommand::class, |
||
25 | 'command+.policy.make' => Console\PolicyMakeCommand::class, |
||
26 | 'command+.provider.make' => Console\ProviderMakeCommand::class, |
||
27 | 'command+.request.make' => Console\RequestMakeCommand::class, |
||
28 | 'command+.seeder.make' => Database\Console\SeederMakeCommand::class, |
||
29 | 'command+.test.make' => Console\TestMakeCommand::class, |
||
30 | ]; |
||
31 | |||
32 | /** |
||
33 | * @var array |
||
34 | */ |
||
35 | protected static $legacy_commands = [ |
||
36 | 'command.auth.make' => Console\DummyCommand::class, |
||
37 | ]; |
||
38 | |||
39 | /** |
||
40 | * The constructor. |
||
41 | * |
||
42 | * @param \Illuminate\Contracts\Foundation\Application $app |
||
43 | */ |
||
44 | 6 | public function __construct(Application $app) |
|
48 | |||
49 | /** |
||
50 | * Register generator commands. |
||
51 | */ |
||
52 | 6 | public function register() |
|
60 | |||
61 | /** |
||
62 | * Register commands. |
||
63 | * |
||
64 | * @param array $commands |
||
65 | */ |
||
66 | 6 | protected function registerCommands(array $commands) |
|
81 | |||
82 | /** |
||
83 | * Setup legacy framework's commands. |
||
84 | * |
||
85 | * @param array $commands |
||
86 | */ |
||
87 | 6 | protected function silentLegacyCommands(array $commands) |
|
95 | } |
||
96 |