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

CryptoGuardServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 10 1
A boot() 0 4 1
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
}