1 | <?php |
||
10 | class SelfDiagnosisCommand extends Command |
||
11 | { |
||
12 | /** |
||
13 | * The console command name. |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $signature = 'self-diagnosis'; |
||
18 | |||
19 | /** |
||
20 | * The console command description. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $description = 'Perform application self diagnosis.'; |
||
25 | |||
26 | /** |
||
27 | * Messages stack. |
||
28 | * |
||
29 | * @var string[] |
||
30 | */ |
||
31 | private $messages = []; |
||
32 | |||
33 | /** |
||
34 | * Execute the console command. |
||
35 | * |
||
36 | * @param Application $app |
||
37 | * |
||
38 | * @return int |
||
39 | */ |
||
40 | public function handle(Application $app) |
||
69 | |||
70 | /** |
||
71 | * Run checks. |
||
72 | * |
||
73 | * @param array $checks |
||
74 | * @param string $title |
||
75 | */ |
||
76 | protected function runChecks(array $checks, string $title) |
||
104 | |||
105 | /** |
||
106 | * Draw message in a box. |
||
107 | * |
||
108 | * @param string $title |
||
109 | */ |
||
110 | protected function drawBox(string $title) |
||
120 | |||
121 | /** |
||
122 | * Make check run. |
||
123 | * |
||
124 | * @param Check $check |
||
125 | * @param array $config |
||
126 | */ |
||
127 | protected function runCheck(Check $check, array $config) |
||
139 | } |
||
140 |