DynamicRouteMapper   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A mapDynamicRoutes() 0 8 1
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
}