Completed
Push — master ( f281e2...d4520e )
by leo
18:27 queued 13:20
created

CASServerServiceProvider   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 36
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 4 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
        // TODO: Implement register() method.
25
    }
26
27
    /**
28
     * @inheritdoc
29
     */
30
    public function boot()
31
    {
32
        require __DIR__.'/Utils/helpers.php';
33
34
        if (!$this->app->routesAreCached()) {
35
            require __DIR__.'/Http/routes.php';
36
        }
37
38
        $this->publishes(
39
            [
40
                __DIR__.'/../config/cas.php' => config_path('cas.php'),
41
            ],
42
            'config'
43
        );
44
45
        $this->publishes(
46
            [
47
                __DIR__.'/../database/migrations/' => database_path('migrations'),
48
            ],
49
            'migrations'
50
        );
51
    }
52
}
53