Completed
Push — master ( 5227c9...65121f )
by Maxime
04:44
created

ExpendableRoutingServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A registerRouter() 0 6 1
1
<?php namespace Distilleries\Expendable;
2
3
use Distilleries\Expendable\Http\Router\Router;
4
use Illuminate\Routing\RoutingServiceProvider;
5
6
class ExpendableRoutingServiceProvider extends RoutingServiceProvider
7
{
8
9
    /**
10
     * Register the router instance.
11
     *
12
     * @return void
13
     */
14
    protected function registerRouter()
15
    {
16
        $this->app['router'] = $this->app->share(function ($app) {
17
            return new Router($app['events'], $app);
18
        });
19
    }
20
}
21