Completed
Push — master ( 2fd055...4af4db )
by Chris
23:20 queued 03:18
created

CryptoGuardServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 1
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
}