stephanecoinon /
sendgrid-activity
| 1 | <?php |
||
| 2 | |||
| 3 | namespace StephaneCoinon\SendGridActivity\Integrations\Laravel; |
||
| 4 | |||
| 5 | use Illuminate\Database\Eloquent\Factory; |
||
| 6 | use Illuminate\Support\ServiceProvider; |
||
| 7 | use StephaneCoinon\SendGridActivity\Integrations\Framework; |
||
| 8 | use StephaneCoinon\SendGridActivity\SendGrid; |
||
| 9 | |||
| 10 | class SendGridApiServiceProvider extends ServiceProvider |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Bootstrap any application services. |
||
| 14 | * |
||
| 15 | * @return void |
||
| 16 | */ |
||
| 17 | public function boot() |
||
| 18 | { |
||
| 19 | Framework::laravel(); |
||
| 20 | app(Factory::class)->load(__DIR__ . '/factories'); |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Register bindings in the container. |
||
| 25 | * |
||
| 26 | * @return void |
||
| 27 | */ |
||
| 28 | public function register() |
||
| 29 | { |
||
| 30 | $this->app->singleton(SendGrid::class, function ($app) { |
||
|
0 ignored issues
–
show
|
|||
| 31 | return new SendGrid(config('services.sendgrid.key')); |
||
| 32 | }); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.