LaravooleServiceProvider::register()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 0
dl 0
loc 10
ccs 8
cts 8
cp 1
crap 1
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