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

AppServiceProvider::provides()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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