1 | <?php namespace Rap2hpoutre\LaravelLogViewer; |
||
5 | class LaravelLogViewerServiceProvider extends ServiceProvider { |
||
6 | |||
7 | /** |
||
8 | * Indicates if loading of the provider is deferred. |
||
9 | * |
||
10 | * @var bool |
||
11 | */ |
||
12 | protected $defer = false; |
||
13 | |||
14 | /** |
||
15 | * Bootstrap the application events. |
||
16 | * |
||
17 | * @return void |
||
18 | */ |
||
19 | public function boot() |
||
34 | |||
35 | /** |
||
36 | * Register the service provider. |
||
37 | * |
||
38 | * @return void |
||
39 | */ |
||
40 | public function register() |
||
45 | |||
46 | /** |
||
47 | * Get the services provided by the provider. |
||
48 | * |
||
49 | * @return array |
||
50 | */ |
||
51 | public function provides() |
||
55 | |||
56 | /** |
||
57 | * Returns config path |
||
58 | * |
||
59 | * @return string |
||
60 | */ |
||
61 | private function getConfigPath(){ |
||
64 | |||
65 | |||
66 | } |
||
67 |
If you implement
__call
and 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
__call
is implemented by a parent class and only the child class knows which methods exist: