OmnipayServiceProvider::publishConfigs()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * @link https://github.com/phpviet/laravel-omnipay
4
 *
5
 * @copyright (c) PHP Viet
6
 * @license [MIT](https://opensource.org/licenses/MIT)
7
 */
8
9
namespace PHPViet\Laravel\Omnipay;
10
11
use Illuminate\Support\ServiceProvider;
12
13
/**
14
 * @author Vuong Minh <[email protected]>
15
 * @since 1.0.0
16
 */
17
class OmnipayServiceProvider extends ServiceProvider
18
{
19
    /**
20
     * Boot package services.
21
     */
22
    public function boot(): void
23
    {
24
        $this->publishConfigs();
25
    }
26
27
    /**
28
     * Publish package service configs.
29
     */
30
    protected function publishConfigs(): void
31
    {
32
        $this->publishes([
33
            __DIR__.'/../config/laravel-omnipay.php' => $this->app->configPath('laravel-omnipay.php'),
34
        ], 'config');
35
    }
36
}
37