AlidayuServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 7 1
1
<?php
2
3
namespace Vicens\Alidayu\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
use Vicens\Alidayu\Alidayu;
7
8
class AlidayuServiceProvider extends ServiceProvider
9
{
10
11
    public function boot()
12
    {
13
14
        // 启动时设置配置
15
        $config = $this->app->make('config')->get('services.alidayu', array());
16
17
        return Alidayu::setConfig($config);
18
    }
19
}