1 | <?php |
||
9 | class Export extends Command |
||
10 | { |
||
11 | /** |
||
12 | * The name and signature of the console command. |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $signature = 'env:export {server : A supported web server} |
||
17 | {--file=.env : The environment file}'; |
||
18 | |||
19 | /** |
||
20 | * The console command description. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $description = 'Export the environment file to a capable web server format.'; |
||
25 | |||
26 | /** |
||
27 | * @var \Illuminate\Filesystem\Filesystem |
||
28 | */ |
||
29 | protected $filesystem; |
||
30 | |||
31 | /** |
||
32 | * Create a new export command instance. |
||
33 | * |
||
34 | * @param \Illuminate\Filesystem\Filesystem $filesystem |
||
35 | */ |
||
36 | public function __construct(Filesystem $filesystem) |
||
42 | |||
43 | /** |
||
44 | * Execute the console command. |
||
45 | */ |
||
46 | public function handle() |
||
54 | |||
55 | /** |
||
56 | * Export the environment file. |
||
57 | * |
||
58 | * @param $fileContents |
||
59 | * @return int |
||
60 | */ |
||
61 | protected function export($fileContents) |
||
74 | } |
||
75 |