SmsServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 16
rs 9.7333
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Tzsk\Sms\Provider;
4
5
use Tzsk\Sms\SmsManager;
6
use Illuminate\Support\ServiceProvider;
7
8
class SmsServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Perform post-registration booting of services.
12
     *
13
     * @return void
14
     */
15
    public function boot()
16
    {
17
        /**
18
         * Configurations that needs to be done by user.
19
         */
20
        $this->publishes([
21
            __DIR__.'/../Config/sms.php' => config_path('sms.php'),
22
        ], 'config');
23
24
        /**
25
         * Bind to service container.
26
         */
27
        $this->app->bind('tzsk-sms', function () {
28
            return new SmsManager(config('sms'));
29
        });
30
    }
31
32
    /**
33
     * Register any package services.
34
     *
35
     * @return void
36
     */
37
    public function register()
38
    {
39
        //
40
    }
41
}
42