1 | <?php declare(strict_types=1); |
||
16 | final class BuildLaravelEventStore extends Command |
||
17 | { |
||
18 | /** |
||
19 | * The name and signature of the console command. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $signature = 'smoothphp:buildeventstore {--force=false}'; |
||
24 | |||
25 | /** |
||
26 | * The console command description. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $description = 'Build the Laravel Event Store'; |
||
31 | |||
32 | /** @var Repository */ |
||
33 | private $config; |
||
34 | |||
35 | /** |
||
36 | * BuildLaravelEventStore constructor. |
||
37 | * @param Repository $config |
||
38 | */ |
||
39 | public function __construct(Repository $config) |
||
44 | |||
45 | /** |
||
46 | * Execute the console command. |
||
47 | * |
||
48 | * @return mixed |
||
49 | */ |
||
50 | public function handle() |
||
67 | |||
68 | /** |
||
69 | * Build eventstore table |
||
70 | */ |
||
71 | protected function buildEventStoreTable() |
||
90 | } |