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

ExpendableRoutingServiceProvider::registerRouter()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
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