CapabilityRepositoryServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 3
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 8 1
1
<?php namespace Usman\Guardian\Repositories\Providers;
2
3
use Illuminate\Support\ServiceProvider;
4
use Usman\Guardian\Repositories\CapabilityRepository;
5
6
class CapabilityRepositoryServiceProvider extends ServiceProvider {
7
8
	 /**
9
     * Register the service provider.
10
     *
11
     * @return void
12
     */
13
    public function register()
14
    {
15
        $this->app->bind('Usman\Guardian\Repositories\Interfaces\CapabilityRepositoryInterface',function()
16
        {
17
            $capability = config('guardian.capabilityModel');
18
            return new CapabilityRepository(new $capability);
19
        });
20
    }
21
}