map()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 0
cts 4
cp 0
cc 1
eloc 2
nc 1
nop 0
crap 2
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