Passed
Push — master ( 7e46f7...0df940 )
by Stephen
54s queued 12s
created

AppInfoServiceProvider::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
namespace Sfneal\Helpers\Laravel\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class AppInfoServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap any AppInfoServiceProvider services.
11
     *
12
     * @return void
13
     */
14
    public function boot()
15
    {
16
        // Publish config file
17
        $this->publishes([
18
            __DIR__.'/../../config/app-info.php' => config_path('app-info.php'),
19
        ], 'config');
20
    }
21
22
    /**
23
     * Register any AppInfoServiceProvider services.
24
     *
25
     * @return void
26
     */
27
    public function register()
28
    {
29
        // Load config file
30
        $this->mergeConfigFrom(__DIR__.'/../../config/app-info.php', 'app-info');
31
    }
32
}
33