Passed
Push — master ( 7d76d6...1230fe )
by Caen
03:19 queued 13s
created

ConfigurationServiceProvider::initialize()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 2
c 0
b 0
f 0
nc 2
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Hyde\Foundation\Providers;
6
7
use Illuminate\Support\ServiceProvider;
8
9
class ConfigurationServiceProvider extends ServiceProvider
10
{
11
    public function register(): void
12
    {
13
        $this->mergeConfigFrom(__DIR__.'/../../../config/hyde.php', 'hyde');
14
        $this->mergeConfigFrom(__DIR__.'/../../../config/docs.php', 'docs');
15
        $this->mergeConfigFrom(__DIR__.'/../../../config/site.php', 'site');
16
        $this->mergeConfigFrom(__DIR__.'/../../../config/markdown.php', 'markdown');
17
    }
18
19
    public function boot(): void
20
    {
21
        $this->publishes([
22
            __DIR__.'/../../../config' => config_path(),
23
        ], 'configs');
24
    }
25
}
26