SMSServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 34
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 7 1
A register() 0 4 1
1
<?php
2
3
namespace Spitoglou\SMS;
4
5
use Illuminate\Support\ServiceProvider;
6
7
/**
8
 * Class SMSServiceProvider
9
 * @package Spitoglou\SMS
10
 */
11
class SMSServiceProvider extends ServiceProvider
12
{
13
14
    /**
15
     * Indicates if loading of the provider is deferred.
16
     *
17
     * @var bool
18
     */
19
    protected $defer = false;
20
21
    /**
22
     * Perform post-registration booting of services.
23
     *
24
     * @return void
25
     */
26
    public function boot()
27
    {
28
        // Publishing configs
29
        $this->publishes([
30
            __DIR__ . '/config/sms.php' => config_path('sms.php'),
31
        ]);
32
    }
33
34
    /**
35
     * Register bindings in the container.
36
     *
37
     * @return void
38
     */
39
    public function register()
40
    {
41
        $this->app->bind('SMSClass', 'Spitoglou\SMS\SMSClass');
42
    }
43
44
}
45