SystempayServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
c 0
b 0
f 0
dl 0
loc 28
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 10 1
A register() 0 2 1
1
<?php
2
3
namespace Frenchykiller\LaravelSystempay;
4
5
use Frenchykiller\LaravelSystempay\View\Components\Systempay;
6
use Illuminate\Support\Facades\Blade;
7
use Illuminate\Support\ServiceProvider;
8
9
class SystempayServiceProvider extends ServiceProvider
10
{
11
    protected $defer = false;
12
13
    /**
14
     * Bootstrap the application services.
15
     *
16
     * @return void
17
     */
18
    public function boot()
19
    {
20
21
        //Publishes package config file to applications config folder
22
        $this->publishes([__DIR__.'/config/systempay.php' => config_path('systempay.php')], ['systempay-config']);
23
24
        // Load views from current directory
25
        $this->loadViewsFrom(__DIR__.'/resources/views', 'laravel-systempay');
26
27
        Blade::component('systempay', Systempay::class);
28
    }
29
30
    /**
31
     * Register the application services.
32
     *
33
     * @return void
34
     */
35
    public function register()
36
    {
37
    }
38
}
39