| 1 | <?php namespace Arcanedev\Support\Providers; |
||
| 12 | abstract class EventServiceProvider extends ServiceProvider |
||
| 13 | { |
||
| 14 | /* ------------------------------------------------------------------------------------------------ |
||
| 15 | | Properties |
||
| 16 | | ------------------------------------------------------------------------------------------------ |
||
| 17 | */ |
||
| 18 | /** |
||
| 19 | * The event handler mappings for the application. |
||
| 20 | * |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | protected $listen = []; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * The subscriber classes to register. |
||
| 27 | * |
||
| 28 | * @var array |
||
| 29 | */ |
||
| 30 | protected $subscribe = []; |
||
| 31 | |||
| 32 | /* ------------------------------------------------------------------------------------------------ |
||
| 33 | | Getters & Setters |
||
| 34 | | ------------------------------------------------------------------------------------------------ |
||
| 35 | */ |
||
| 36 | /** |
||
| 37 | * Get the events and handlers. |
||
| 38 | * |
||
| 39 | * @return array |
||
| 40 | */ |
||
| 41 | public function listens() |
||
| 45 | |||
| 46 | /* ------------------------------------------------------------------------------------------------ |
||
| 47 | | Main Functions |
||
| 48 | | ------------------------------------------------------------------------------------------------ |
||
| 49 | */ |
||
| 50 | /** |
||
| 51 | * Register the application's event listeners. |
||
| 52 | */ |
||
| 53 | public function boot() |
||
| 65 | |||
| 66 | /** |
||
| 67 | * {@inheritdoc} |
||
| 68 | */ |
||
| 69 | public function register() |
||
| 73 | } |
||
| 74 |