ActionServiceProvider::boot()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 14

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 9.7998
c 0
b 0
f 0
cc 2
nc 2
nop 0
1
<?php
2
3
namespace BrightComponents\Actions;
4
5
use BrightComponents\Actions\Commands\ActionMakeCommand;
6
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
7
8
class ActionServiceProvider extends BaseServiceProvider
9
{
10
    /**
11
     * Bootstrap the application services.
12
     */
13
    public function boot()
14
    {
15
        if ($this->app->runningInConsole()) {
16
            $this->publishes([
17
                __DIR__.'/../config/actions.php' => config_path('actions.php'),
18
            ]);
19
        }
20
21
        $this->mergeConfigFrom(__DIR__.'/../config/actions.php', 'actions');
22
23
        $this->commands([
24
            ActionMakeCommand::class,
25
        ]);
26
    }
27
}
28