LaravelApiManagersServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 35
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 15 1
A register() 0 6 1
1
<?php
2
3
/**
4
 * @Author: etanasia
5
 * @Date:   2017-11-28 00:02:15
6
 * @Last Modified by:   etanasia
7
 * @Last Modified time: 2017-11-28 09:45:46
8
 */
9
10
namespace Jawaraegov\LaravelApiManagers;
11
12
use Illuminate\Support\ServiceProvider;
13
14
class LaravelApiManagersServiceProvider extends ServiceProvider
15
{
16
    /**
17
     * Bootstrap the application services.
18
     *
19
     * @return void
20
     */
21
    public function boot()
22
    {
23
        include __DIR__.'/LaravelApiManagers.php';
24
        $this->publishes([
25
        __DIR__ . '/config' => config_path('/'),
26
        __DIR__ . '/views' => base_path('resources/views/api_manager'),
27
        __DIR__ . '/host_keys' => base_path('resources/views/host_keys'),
28
        __DIR__ . '/controller' => base_path('app/Http/Controllers'),
29
        __DIR__ . '/middleware' => base_path('app/Http/Middleware'),
30
        __DIR__ . '/models' => base_path('app'),
31
        __DIR__ . '/migrations' => base_path('database/migrations'),
32
33
        ]);
34
        $this->commands('Jawaraegov\LaravelApiManagers\Commands\RouteCommands');
35
    }
36
37
    /**
38
     * Register the application services.
39
     *
40
     * @return void
41
     */
42
    public function register()
43
    {
44
       $this->mergeConfigFrom(
45
        __DIR__ . '/config/laravel-api-managers.php', 'laravel-api-managers'
46
        );
47
    }
48
}
49