Completed
Branch master (384cd7)
by Nil
04:48
created

RouteServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 2
c 3
b 0
f 0
lcom 1
cbo 2
dl 0
loc 33
rs 10
1
<?php
2
3
namespace NilPortugues\Tests\App\Providers;
4
5
use Illuminate\Routing\Router;
6
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
7
8
class RouteServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * This namespace is applied to the controller routes in your routes file.
12
     *
13
     * In addition, it is set as the URL generator's root namespace.
14
     *
15
     * @var string
16
     */
17
    protected $namespace = 'NilPortugues\Tests\App\Controller';
18
19
    /**
20
     * Define your route model bindings, pattern filters, etc.
21
     *
22
     * @param \Illuminate\Routing\Router $router
23
     */
24
    public function boot(Router $router)
25
    {
26
        parent::boot($router);
27
    }
28
29
    /**
30
     * Define the routes for the application.
31
     *
32
     * @param \Illuminate\Routing\Router $router
33
     */
34
    public function map(Router $router)
35
    {
36
        $router->group(['namespace' => $this->namespace], function ($router) {
37
            require dirname(__FILE__).'/../routes.php';
38
        });
39
    }
40
}
41