VasriServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
3
4
namespace ExoUNX\Vasri\Providers;
5
6
use Illuminate\Support\ServiceProvider;
7
8
/**
9
 * Service Provider for Laravel
10
 * Class VasriServiceProvider
11
 *
12
 * @package ExoUNX\Vasri
13
 * @author  Gaige Lama <[email protected]>
14
 * @license MIT License
15
 * @link    https://github.com/ExoUNX/Vasri
16
 */
17
class VasriServiceProvider extends ServiceProvider
18
{
19
20
    /**
21
     * Perform post-registration booting of services.
22
     *
23
     * @return void
24
     */
25
    public function boot(): void
26
    {
27
        $this->publishes(
28
            [
29
                __DIR__.'/../config/vasri.php' => config_path('vasri.php'),
30
            ]
31
        );
32
    }
33
34
    /**
35
     * Register bindings in the container.
36
     *
37
     * @return void
38
     */
39
    public function register()
40
    {
41
        $this->commands([
42
            \ExoUNX\Vasri\Commands\VasriCommand::class,
43
        ]);
44
45
        $this->mergeConfigFrom(__DIR__.'/../config/vasri.php', 'vasri');
46
    }
47
48
}
49