Passed
Push — master ( f22f3e...23161b )
by Stephen
02:08
created

RedisHelpersServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 6
rs 10
1
<?php
2
3
4
namespace Sfneal\Helpers\Redis\Providers;
5
6
7
use Illuminate\Support\ServiceProvider;
8
9
class RedisHelpersServiceProvider extends ServiceProvider
10
{
11
    /**
12
     * Bootstrap any RedisCache services.
13
     *
14
     * @return void
15
     */
16
    public function boot()
17
    {
18
        // Publish config file
19
        $this->publishes([
20
            __DIR__.'/../../config/redis-helpers.php' => base_path('config/redis-helpers.php'),
21
        ], 'config');
22
    }
23
24
    /**
25
     * Register any RedisCache services.
26
     *
27
     * @return void
28
     */
29
    public function register()
30
    {
31
        // Load config file
32
        $this->mergeConfigFrom(__DIR__.'/../../config/redis-helpers.php', 'redis-helpers');
33
    }
34
}
35