GeneratorsServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 2
dl 0
loc 34
ccs 0
cts 17
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 16 2
A register() 0 4 1
1
<?php
2
3
namespace Webfactor\Laravel\Generators;
4
5
use Illuminate\Support\ServiceProvider;
6
use Webfactor\Laravel\Generators\Commands\MakeBackpackCrudController;
7
use Webfactor\Laravel\Generators\Commands\MakeBackpackCrudModel;
8
use Webfactor\Laravel\Generators\Commands\MakeBackpackCrudRequest;
9
use Webfactor\Laravel\Generators\Commands\MakeEntity;
10
11
class GeneratorsServiceProvider extends ServiceProvider
12
{
13
    /**
14
     * Perform post-registration booting of services.
15
     *
16
     * @return void
17
     */
18
    public function boot()
19
    {
20
        if ($this->app->runningInConsole()) {
21
            $this->commands([
22
                MakeEntity::class,
23
            ]);
24
25
            $this->publishes([
26
                __DIR__ . '/../config/generators.php' => config_path('webfactor/generators.php'),
27
            ], 'config');
28
        }
29
30
        $this->mergeConfigFrom(
31
            __DIR__ . '/../config/generators.php', 'webfactor.generators'
32
        );
33
    }
34
35
    /**
36
     * Register any package services.
37
     *
38
     * @return void
39
     */
40
    public function register()
41
    {
42
        //
43
    }
44
}
45