AppLicenseServerServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 8
rs 10
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