Passed
Push — master ( d2297b...422dce )
by Taha
02:44
created

XdebugToggleServiceProvider::register()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Tpaksu\XdebugToggle;
4
5
use Illuminate\Support\ServiceProvider;
6
use Tpaksu\XdebugToggle\Commands\XdebugToggle;
7
8
class XdebugToggleServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Bootstrap the application services.
12
     *
13
     * @return void
14
     */
15
    public function boot()
16
    {
17
        $this->publishes([
18
            __DIR__ . "/config/xdebug-toggle.php" => config_path('xdebug-toggle.php')
19
        ], "config");
20
21
        if ($this->app->runningInConsole()) {
22
            $this->commands([
23
                XdebugToggle::class,
24
            ]);
25
        }
26
    }
27
28
    public function register()
29
    {
30
        $this->mergeConfigFrom(__DIR__ . "/config/xdebug-toggle.php", "xdebugtoggle");
31
    }
32
}
33