Completed
Push — master ( 1a65d7...018a8e )
by Nil
03:48
created

RouteServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4286
cc 1
eloc 2
nc 1
nop 1
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 = 'App\Http\Controllers';
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
        //
27
28
        parent::boot($router);
29
    }
30
31
    /**
32
     * Define the routes for the application.
33
     *
34
     * @param \Illuminate\Routing\Router $router
35
     */
36
    public function map(Router $router)
37
    {
38
        $router->group(['namespace' => $this->namespace], function ($router) {
39
            require app_path('Http/routes.php');
40
        });
41
    }
42
}
43