1 | <?php |
||
7 | class SyncSwitch extends Command |
||
8 | { |
||
9 | use Traits\SyncTrait; |
||
10 | |||
11 | /** |
||
12 | * {@inheritdoc} |
||
13 | */ |
||
14 | protected $signature = 'contentful:sync-switch {--preview} {--live}'; |
||
15 | |||
16 | /** |
||
17 | * {@inheritdoc} |
||
18 | */ |
||
19 | protected $description = 'Dump and switch the database'; |
||
20 | |||
21 | protected function isFromSyncToLive(): bool |
||
26 | |||
27 | protected function isPreview(): bool |
||
32 | |||
33 | /** |
||
34 | * Execute the console command. |
||
35 | * |
||
36 | * @return void |
||
37 | */ |
||
38 | public function handle() |
||
56 | } |
||
57 |