Completed
Push — master ( 39dbfd...23dd4b )
by Renato
02:42
created

AppServiceProvider   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 4
dl 0
loc 26
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 4 1
A register() 0 7 1
A provides() 0 4 1
1
<?php
2
/**
3
 * GitScrum v0.1.
4
 *
5
 * @author  Renato Marinho <[email protected]>
6
 * @license http://opensource.org/licenses/GPL-3.0 GPLv3
7
 */
8
namespace GitScrum\Providers;
9
10
use Illuminate\Support\ServiceProvider;
11
use Illuminate\Database\Eloquent\Relations\Relation;
12
use GitScrum\Classes\Github;
13
14
class AppServiceProvider extends ServiceProvider
15
{
16
    /**
17
     * Bootstrap any application services.
18
     */
19
    public function boot()
20
    {
21
        Relation::morphMap(\Config::get('database.relation'));
22
    }
23
24
    /**
25
     * Register any application services.
26
     */
27
    public function register()
28
    {
29
        $this->app->bind('GithubClass', function()
30
        {
31
            return new Github;
32
        });
33
    }
34
35
    public function provides()
36
    {
37
        return ['GithubClass'];
38
    }
39
}
40