AliveLaravelMessageServiceRouteServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 2
dl 0
loc 45
rs 10
c 0
b 0
f 0
ccs 0
cts 14
cp 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 4 1
A map() 0 4 1
A mapApiRoutes() 0 6 1
1
<?php
2
3
namespace Alive2212\LaravelMessageService\Providers;
4
5
use Illuminate\Support\Facades\Route;
6
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
7
8
class AliveLaravelMessageServiceRouteServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * This namespace is applied to your controller routes.
12
     *
13
     * In addition, it is set as the URL generator's root namespace.
14
     *
15
     * @var string
16
     */
17
    protected $namespace = 'Alive2212\LaravelMessageService\Http\Controllers';
18
19
    /**
20
     * Define your route model bindings, pattern filters, etc.
21
     *
22
     * @return void
23
     */
24
    public function boot()
25
    {
26
        parent::boot();
27
    }
28
29
    /**
30
     * Define the routes for the application.
31
     *
32
     * @return void
33
     */
34
    public function map()
35
    {
36
        $this->mapApiRoutes();
37
    }
38
39
    /**
40
     * Define the "api" routes for the application.
41
     *
42
     * These routes are typically stateless.
43
     *
44
     * @return void
45
     */
46
    protected function mapApiRoutes()
47
    {
48
        Route::prefix('alive_api')
49
             ->namespace($this->namespace)
50
             ->group(__DIR__.'/../../routes/api.php');
51
    }
52
}
53