1 | <?php namespace Arcanesoft\Foundation\Console; |
||
11 | class InstallCommand extends Command |
||
12 | { |
||
13 | /* ----------------------------------------------------------------- |
||
14 | | Properties |
||
15 | | ----------------------------------------------------------------- |
||
16 | */ |
||
17 | /** |
||
18 | * The name and signature of the console command. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $signature = 'foundation:install'; |
||
23 | |||
24 | /** |
||
25 | * The console command description. |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $description = 'Foundation install command.'; |
||
30 | |||
31 | /* ----------------------------------------------------------------- |
||
32 | | Main Methods |
||
33 | | ----------------------------------------------------------------- |
||
34 | */ |
||
35 | /** |
||
36 | * Execute the console command. |
||
37 | */ |
||
38 | public function handle() |
||
46 | |||
47 | /** |
||
48 | * Run the setup. |
||
49 | */ |
||
50 | private function setup() |
||
56 | |||
57 | /* ----------------------------------------------------------------- |
||
58 | | Other Methods |
||
59 | | ----------------------------------------------------------------- |
||
60 | */ |
||
61 | /** |
||
62 | * Publish all modules: configs, migrations, assets ... |
||
63 | */ |
||
64 | private function publishAllModules() |
||
75 | |||
76 | /** |
||
77 | * Refresh migrations. |
||
78 | */ |
||
79 | private function refreshMigrations() |
||
88 | |||
89 | /** |
||
90 | * Seed all modules. |
||
91 | */ |
||
92 | private function installModules() |
||
106 | } |
||
107 |