1 | <?php |
||
8 | class EnvScan extends Command |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * The name and signature of the console command. |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $signature = ' |
||
17 | env:scan |
||
18 | { --d|dir= : Specify directory to scan (defaults to your config folder) } |
||
19 | { --a|all : Show result containing all used variables } |
||
20 | '; |
||
21 | |||
22 | private $scanner; |
||
23 | |||
24 | /** |
||
25 | * The console command description. |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $description = 'Check environmental variables used in your app'; |
||
30 | |||
31 | /** |
||
32 | * Execute the console command. |
||
33 | * |
||
34 | * @return mixed |
||
35 | * @throws \Exception |
||
36 | */ |
||
37 | public function handle() |
||
66 | |||
67 | private function showResult() |
||
91 | } |
||
92 |