DynamicRouteMapper::mapDynamicRoutes()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
4
namespace ElementsFramework\DynamicRouting\Service;
5
6
7
use Illuminate\Support\Facades\Route;
8
9
class DynamicRouteMapper
10
{
11
12
    /**
13
     * Plugs all of the compiled dynamic routes into the router.
14
     */
15
    public static function mapDynamicRoutes()
16
    {
17
        Route::group([
18
            'middleware' => config('dynamic-routing.middleware-group'),
19
        ], function ($router) {
20
            require base_path(config('dynamic-routing.compiled-routes-path'));
21
        });
22
    }
23
}