Total Complexity | 4 |
Total Lines | 74 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Distilleries\Expendable; |
||
6 | class ExpendableRouteServiceProvider extends ServiceProvider |
||
7 | { |
||
8 | |||
9 | protected $router; |
||
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 = 'Distilleries\Expendable\Http\Controllers'; |
||
18 | |||
19 | |||
20 | |||
21 | /** |
||
22 | * Define your route model bindings, pattern filters, etc. |
||
23 | * |
||
24 | * @return void |
||
25 | */ |
||
26 | 288 | public function boot() |
|
27 | { |
||
28 | 288 | parent::boot(); |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * Define the routes for the application. |
||
33 | * |
||
34 | * @return void |
||
35 | */ |
||
36 | 288 | public function map() |
|
37 | { |
||
38 | 288 | $this->mapWebRoutes(); |
|
39 | |||
40 | 288 | $this->mapApiRoutes(); |
|
41 | |||
42 | // |
||
43 | } |
||
44 | |||
45 | |||
46 | /** |
||
47 | * Define the "web" routes for the application. |
||
48 | * |
||
49 | * These routes all receive session state, CSRF protection, etc. |
||
50 | * |
||
51 | * @return void |
||
52 | */ |
||
53 | 288 | protected function mapWebRoutes() |
|
62 | 288 | }); |
|
63 | } |
||
64 | |||
65 | /** |
||
66 | * Define the "api" routes for the application. |
||
67 | * |
||
68 | * These routes are typically stateless. |
||
69 | * |
||
70 | * @return void |
||
71 | */ |
||
72 | 288 | protected function mapApiRoutes() |
|
80 | 288 | }); |
|
81 | } |
||
82 | } |
||
83 |