| 1 | <?php |
||
| 10 | abstract class ModulesServiceProvider extends ServiceProvider |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Booting the package. |
||
| 14 | */ |
||
| 15 | public function boot() |
||
| 16 | { |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Register all modules. |
||
| 21 | */ |
||
| 22 | public function register() |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Register all modules. |
||
| 28 | */ |
||
| 29 | 190 | protected function registerModules() |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Register package's namespaces. |
||
| 36 | */ |
||
| 37 | 190 | protected function registerNamespaces() |
|
| 46 | |||
| 47 | /** |
||
| 48 | * Register the service provider. |
||
| 49 | */ |
||
| 50 | abstract protected function registerServices(); |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Get the services provided by the provider. |
||
| 54 | * |
||
| 55 | * @return array |
||
| 56 | */ |
||
| 57 | public function provides() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Register providers. |
||
| 64 | */ |
||
| 65 | 190 | protected function registerProviders() |
|
| 70 | } |
||
| 71 |