1 | <?php |
||
14 | final class BuildLaravelEventStore extends Command |
||
15 | { |
||
16 | /** |
||
17 | * The name and signature of the console command. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $signature = 'smoothphp:buildeventstore {--force=false}'; |
||
22 | |||
23 | /** |
||
24 | * The console command description. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $description = 'Build the Laravel Event Store'; |
||
29 | |||
30 | /** @var Repository */ |
||
31 | private $config; |
||
32 | |||
33 | /** |
||
34 | * BuildLaravelEventStore constructor. |
||
35 | * @param Repository $config |
||
36 | */ |
||
37 | public function __construct(Repository $config) |
||
42 | |||
43 | /** |
||
44 | * Execute the console command. |
||
45 | * |
||
46 | * @return mixed |
||
47 | */ |
||
48 | public function handle() |
||
58 | |||
59 | /** |
||
60 | * Build eventstore table |
||
61 | */ |
||
62 | protected function buildEventStoreTable() |
||
77 | } |