Completed
Push — master ( 44b229...b8c9f6 )
by Stéphane
01:02
created

SendGridApiServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace StephaneCoinon\SendGridActivity\Integrations\Laravel;
4
5
use Illuminate\Support\ServiceProvider;
6
use StephaneCoinon\SendGridActivity\SendGrid;
7
use StephaneCoinon\SendGridActivity\Integrations\Framework;
8
9
class SendGridApiServiceProvider extends ServiceProvider
10
{
11
    /**
12
     * Bootstrap any application services.
13
     *
14
     * @return void
15
     */
16
    public function boot()
17
    {
18
        Framework::laravel();
19
    }
20
21
    /**
22
     * Register bindings in the container.
23
     *
24
     * @return void
25
     */
26
    public function register()
27
    {
28
        $this->app->singleton(SendGrid::class, function ($app) {
0 ignored issues
show
Unused Code introduced by
The parameter $app is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
29
            return new SendGrid(config('services.sendgrid.key'));
30
        });
31
    }
32
}
33