Completed
Push — master ( eab647...b4731b )
by Mads
23:22 queued 20:45
created

RouterServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1.2963

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 6
ccs 1
cts 3
cp 0.3333
crap 1.2963
rs 10
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 30
    public function register()
11
    {
12 30
    }
13
14 30
    public function boot()
15
    {
16
        $this->app->singleton('internalrouter', function () {
17
            $app = app();
18
19
            return new Router($app, $app['request'], $app['router']);
20 30
        });
21 30
    }
22
}
23