CryptoGuardServiceProvider::register()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 10
rs 9.4286
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace Coreproc\CryptoGuard\Providers;
4
use Illuminate\Support\ServiceProvider;
5
use Coreproc\CryptoGuard\CryptoGuard;
6
7
class CryptoGuardServiceProvider extends ServiceProvider
8
{
9
10
    public function register()
11
    {
12
        $this->publishes([
13
            dirname(__DIR__) . '..\..\config\crypto_guard.php' => config_path('crypto_guard.php'),
14
        ]);
15
16
        $this->app->bind('cryptoguard', function() {
17
            return new CryptoGuard(config('crypto_guard.passphrase'));
18
        });
19
    }
20
21
    public function boot()
22
    {
23
24
    }
25
26
}