1 | <?php |
||
14 | class SyncCommand extends BaseCommand |
||
15 | { |
||
16 | const YES = 'y'; |
||
17 | const NO = 'n'; |
||
18 | const CHANGE = 'c'; |
||
19 | |||
20 | /** |
||
21 | * The name and signature of the console command. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $signature = 'env:sync {--reverse} {--src=} {--dest=}'; |
||
26 | |||
27 | /** |
||
28 | * The console command description. |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $description = 'Synchronise the .env & .env.example files.'; |
||
33 | |||
34 | /** |
||
35 | * @var SyncService |
||
36 | */ |
||
37 | private $sync; |
||
38 | |||
39 | /** |
||
40 | * @var WriterInterface |
||
41 | */ |
||
42 | private $writer; |
||
43 | |||
44 | /** |
||
45 | * Create a new command instance. |
||
46 | * |
||
47 | * @param SyncService $sync |
||
48 | */ |
||
49 | 7 | public function __construct(SyncService $sync, WriterInterface $writer) |
|
55 | |||
56 | /** |
||
57 | * Execute the console command. |
||
58 | * |
||
59 | * @return mixed |
||
60 | */ |
||
61 | 3 | public function handle() |
|
107 | } |
||
108 |