CASServerServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 35
ccs 0
cts 22
cp 0
rs 10
c 0
b 0
f 0
wmc 3
lcom 1
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 3 1
A boot() 0 22 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: chenyihong
5
 * Date: 16/8/13
6
 * Time: 17:49
7
 */
8
9
namespace Leo108\CAS;
10
11
use Illuminate\Support\ServiceProvider;
12
13
/**
14
 * Class CASServerServiceProvider
15
 * @package Leo108\CAS
16
 */
17
class CASServerServiceProvider extends ServiceProvider
18
{
19
    /**
20
     * @inheritdoc
21
     */
22
    public function register()
23
    {
24
    }
25
26
    /**
27
     * @inheritdoc
28
     */
29
    public function boot()
30
    {
31
        require __DIR__.'/helpers.php';
32
33
        if (!$this->app->routesAreCached()) {
34
            require __DIR__.'/Http/routes.php';
35
        }
36
37
        $this->publishes(
38
            [
39
                __DIR__.'/../config/cas.php' => config_path('cas.php'),
40
            ],
41
            'config'
42
        );
43
44
        $this->publishes(
45
            [
46
                __DIR__.'/../database/migrations/' => database_path('migrations'),
47
            ],
48
            'migrations'
49
        );
50
    }
51
}
52