Passed
Push — master ( d7d8c0...c26592 )
by Mads
03:35
created

RouterServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 6
ccs 0
cts 3
cp 0
crap 2
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Napp\Core\Api\Router\Provider;
4
5
use Illuminate\Support\ServiceProvider as BaseProvider;
6
use Napp\Core\Api\Router\Router;
7
8
class RouterServiceProvider extends BaseProvider
9
{
10
    public function register()
11
    {
12
    }
13
14
    public function boot()
15
    {
16
        $this->app->singleton('internalrouter', function () {
17
            $app = app();
18
19
            return new Router($app, $app['request'], $app['router']);
20
        });
21
    }
22
}
23