ServiceLayerGeneratorServiceProvider::boot()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 4
nc 2
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Zendaemon\Services;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class ServiceLayerGeneratorServiceProvider extends ServiceProvider
8
{
9
    public function boot()
10
    {
11
        if ($this->app->runningInConsole()) {
12
            $this->commands([
13
                Console\ConsoleMakeService::class,
14
                Console\InstallCommand::class,
15
            ]);
16
        }
17
    }
18
19
    public function register()
20
    {
21
        if ($this->app->runningInConsole()) {
22
            $this->publishes([
23
                __DIR__.'/../stubs/ServiceLayerServiceProvider.stub' => app_path('Providers/ServiceLayerServiceProvider.php'),
24
            ], 'service-layer-generator-provider');
25
        }
26
    }
27
}
28