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

CASServerServiceProvider::boot()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 22
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
cc 2
eloc 10
nc 2
nop 0
dl 0
loc 22
ccs 0
cts 19
cp 0
crap 6
rs 9.2
c 0
b 0
f 0
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