CryptServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 10
rs 9.4285
cc 1
eloc 6
nc 1
nop 0
1
<?php
2
namespace Tzsk\Crypt\Provider;
3
4
use Illuminate\Support\ServiceProvider;
5
use Tzsk\Crypt\Crypter;
6
7
class CryptServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Boot Service Provider.
11
     */
12
    public function boot()
13
    {
14
        $this->publishes([
15
            __DIR__.'/../Config/crypt.php' => config_path('crypt.php'),
16
        ], 'config');
17
18
        $this->app->bind('tzsk-crypt', function () {
19
            return new Crypter();
20
        });
21
    }
22
23
    /**
24
     * Register the service provider.
25
     *
26
     * @return void
27
     */
28
    public function register()
29
    {
30
        //
31
    }
32
}
33