1 | <?php |
||
14 | abstract class EventServiceProvider extends ServiceProvider |
||
15 | { |
||
16 | /* ----------------------------------------------------------------- |
||
17 | | Properties |
||
18 | | ----------------------------------------------------------------- |
||
19 | */ |
||
20 | |||
21 | /** |
||
22 | * The event handler mappings for the application. |
||
23 | * |
||
24 | * @var array |
||
25 | */ |
||
26 | protected $listen = []; |
||
27 | |||
28 | /** |
||
29 | * The subscriber classes to register. |
||
30 | * |
||
31 | * @var array |
||
32 | */ |
||
33 | protected $subscribe = []; |
||
34 | |||
35 | /* ----------------------------------------------------------------- |
||
36 | | Getters & Setters |
||
37 | | ----------------------------------------------------------------- |
||
38 | */ |
||
39 | |||
40 | /** |
||
41 | * Get the events and handlers. |
||
42 | * |
||
43 | * @return array |
||
44 | */ |
||
45 | public function listens() |
||
49 | |||
50 | /* ----------------------------------------------------------------- |
||
51 | | Main Methods |
||
52 | | ----------------------------------------------------------------- |
||
53 | */ |
||
54 | |||
55 | /** |
||
56 | * Register the application's event listeners. |
||
57 | */ |
||
58 | public function boot() |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | public function register() |
||
78 | } |
||
79 |