AppLicenseServerServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 26
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 8 1
A register() 0 2 1
1
<?php
2
3
namespace Irfa\AppLicenseServer;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class AppLicenseServerServiceProvider extends ServiceProvider
8
{
9
    protected $namespace='AppLicenseServer\Controllers';
10
    /**
11
     * Register services.
12
     *
13
     * @return void
14
     */
15
    public function register()
16
    {
17
        
18
    }
19
20
    /**
21
     * Bootstrap services.
22
     *
23
     * @return void
24
     */
25
    public function boot()
26
    {
27
        \Route::middleware('api')->any(config('irfa.app_license_server.license_route'),'Irfa\AppLicenseServer\Controller\AppLicenseController@check')->name(config('irfa.app_license_server.route_name'));
28
        $this->publishes([
29
            __DIR__.'/../config/irfa/' => config_path('irfa')],'app-license-server');
30
        $this->publishes([
31
            __DIR__.'/../migrations/' => database_path('migrations'),
32
        ], 'app-license-server');
33
34
        
35
    }
36
}
37