LaravooleServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 6
ccs 0
cts 5
cp 0
crap 2
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Laravoole;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class LaravooleServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap services.
11
     *
12
     * @return void
13
     */
14
    public function boot()
15
    {
16
        $this->publishes([
17
            __DIR__ . '/../config/laravoole.php' => config_path('laravoole.php'),
18
        ]);
19
    }
20
21
    /**
22
     * Register services.
23
     *
24
     * @return void
25
     */
26 20
    public function register()
27
    {
28 20
        $this->mergeConfigFrom(
29 20
            __DIR__ . '/../config/laravoole.php', 'laravoole'
30 10
        );
31
32 20
        $this->commands([
33 20
            Commands\LaravooleCommand::class,
34 10
        ]);
35 20
    }
36
}
37