| 1 | <?php |
||
| 7 | class LaravelLogViewerServiceProvider extends ServiceProvider |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Indicates if loading of the provider is deferred. |
||
| 11 | * |
||
| 12 | * @var bool |
||
| 13 | */ |
||
| 14 | protected $defer = false; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Bootstrap the application events. |
||
| 18 | * |
||
| 19 | * @return void |
||
| 20 | */ |
||
| 21 | public function boot() |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Register the service provider. |
||
| 36 | * |
||
| 37 | * @return void |
||
| 38 | */ |
||
| 39 | public function register() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Get the services provided by the provider. |
||
| 50 | * |
||
| 51 | * @return array |
||
| 52 | */ |
||
| 53 | public function provides() |
||
| 57 | } |
||
| 58 |
If you implement
__calland you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__callis implemented by a parent class and only the child class knows which methods exist: