HandlersServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 27
rs 10
c 0
b 0
f 0
ccs 10
cts 10
cp 1
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 8 1
A boot() 0 5 1
1
<?php
2
3
namespace Hivokas\LaravelHandlers\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
use Hivokas\LaravelHandlers\Commands\HandlerMakeCommand;
7
8
class HandlersServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Bootstrap any application services.
12
     *
13
     * @return void
14
     */
15 22
    public function boot()
16
    {
17 22
        $this->publishes([
18 22
            __DIR__.'/../../config/handlers.php' => config_path('handlers.php'),
19 22
        ], 'config');
20 22
    }
21
22
    /**
23
     * Register any application services.
24
     *
25
     * @return void
26
     */
27 22
    public function register()
28
    {
29 22
        $this->mergeConfigFrom(__DIR__.'/../../config/handlers.php', 'handlers');
30
31 22
        $this->app->singleton('command.handler.make', HandlerMakeCommand::class);
32
33 22
        $this->commands([
34 22
            'command.handler.make',
35
        ]);
36 22
    }
37
}
38