swinn-io /
server
| 1 | <?php |
||
| 2 | |||
| 3 | namespace App\Providers\Project; |
||
| 4 | |||
| 5 | use App\Interfaces\ContactServiceInterface; |
||
| 6 | use App\Interfaces\MessageServiceInterface; |
||
| 7 | use App\Services\MessageService; |
||
| 8 | use Illuminate\Support\ServiceProvider; |
||
| 9 | |||
| 10 | class MessageServiceProvider extends ServiceProvider |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Register services. |
||
| 14 | * |
||
| 15 | * @return void |
||
| 16 | */ |
||
| 17 | public function register() |
||
| 18 | { |
||
| 19 | $this->app->bind(MessageServiceInterface::class, function ($app) { |
||
|
0 ignored issues
–
show
|
|||
| 20 | return new MessageService( |
||
| 21 | $this->app->make(ContactServiceInterface::class) |
||
| 22 | ); |
||
| 23 | }); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Bootstrap services. |
||
| 28 | * |
||
| 29 | * @return void |
||
| 30 | */ |
||
| 31 | public function boot() |
||
| 32 | { |
||
| 33 | // |
||
| 34 | } |
||
| 35 | } |
||
| 36 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.