ServiceLayerGeneratorServiceProvider   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 4

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 2
A boot() 0 6 2
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