1 | <?php |
||
8 | class EventGenerateCommand extends Command |
||
9 | { |
||
10 | /** |
||
11 | * The console command name. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $name = 'event:generate'; |
||
16 | |||
17 | /** |
||
18 | * The console command description. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $description = 'Generate the missing events and listeners based on registration'; |
||
23 | |||
24 | /** |
||
25 | * Execute the console command. |
||
26 | * |
||
27 | * @return void |
||
28 | */ |
||
29 | public function handle() |
||
41 | |||
42 | /** |
||
43 | * Make the event and listeners for the given event. |
||
44 | * |
||
45 | * @param string $event |
||
46 | * @param array $listeners |
||
47 | * @return void |
||
48 | */ |
||
49 | protected function makeEventAndListeners($event, $listeners) |
||
59 | |||
60 | /** |
||
61 | * Make the listeners for the given event. |
||
62 | * |
||
63 | * @param string $event |
||
64 | * @param array $listeners |
||
65 | * @return void |
||
66 | */ |
||
67 | protected function makeListeners($event, $listeners) |
||
77 | } |
||
78 |