| 1 | <?php |
||
| 8 | class SocialMapFavoritesServiceProvider extends ServiceProvider { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Bootstrap any application services. |
||
| 12 | * |
||
| 13 | * @return void |
||
| 14 | */ |
||
| 15 | public function boot() |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Register any application services. |
||
| 23 | * |
||
| 24 | * This service provider is a great spot to register your various container |
||
| 25 | * bindings with the application. As you can see, we are registering our |
||
| 26 | * "Registrar" implementation here. You can add your own bindings too! |
||
| 27 | * |
||
| 28 | * @return void |
||
| 29 | */ |
||
| 30 | public function register() |
||
| 34 | |||
| 35 | public function setModelConnection(){ |
||
| 38 | |||
| 39 | } |
||
| 40 |
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: