1 | <?php |
||
10 | class AdminCommand extends Command |
||
11 | { |
||
12 | /** |
||
13 | * The name and signature of the console command. |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $signature = 'admin'; |
||
18 | |||
19 | /** |
||
20 | * The console command description. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $description = 'List all admin commands'; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | public static $logo = <<<LOGO |
||
30 | __ __ __ _ |
||
31 | / / ____ __________ __ _____ / / ____ _____/ /___ ___ (_)___ |
||
32 | / / / __ `/ ___/ __ `/ | / / _ \/ /_____/ __ `/ __ / __ `__ \/ / __ \ |
||
33 | / /___/ /_/ / / / /_/ /| |/ / __/ /_____/ /_/ / /_/ / / / / / / / / / / |
||
34 | /_____/\__,_/_/ \__,_/ |___/\___/_/ \__,_/\__,_/_/ /_/ /_/_/_/ /_/ |
||
35 | |||
36 | LOGO; |
||
37 | |||
38 | /** |
||
39 | * Execute the console command. |
||
40 | */ |
||
41 | public function handle() |
||
51 | |||
52 | /** |
||
53 | * List all admin commands |
||
54 | * |
||
55 | * @return void |
||
56 | */ |
||
57 | protected function listAdminCommands() |
||
74 | |||
75 | /** |
||
76 | * @param (Command|string)[] $commands |
||
77 | * |
||
78 | * @return int |
||
79 | */ |
||
80 | private function getColumnWidth(array $commands) |
||
93 | |||
94 | /** |
||
95 | * Returns the length of a string, using mb_strwidth if it is available. |
||
96 | * |
||
97 | * @param string $string The string to check its length |
||
98 | * |
||
99 | * @return int The length of the string |
||
100 | */ |
||
101 | public static function strlen($string) |
||
109 | } |
||
110 |