Completed
Pull Request — master (#19)
by Şəhriyar
14:06 queued 09:06
created

RegistrarServiceProvider::provides()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php namespace App\Providers;
2
3
use Illuminate\Support\ServiceProvider;
4
5
class RegistrarServiceProvider extends ServiceProvider
6
{
7
    /**
8
     * Deferring the loading of a provider improves performance of the application,
9
     * since it is not loaded from the filesystem on every request.
10
     *
11
     * @var bool
12
     */
13
    protected $defer = true;
14
15
    /**
16
     * Register any application services.
17
     *
18
     * @return void
19
     */
20 46
    public function register()
21
    {
22 46
        $this->app->bind(\App\Contracts\Registrar::class, \App\Services\Registrar::class);
23 46
    }
24
25
    /**
26
     * Get the services provided by the provider.
27
     *
28
     * @return array
29
     */
30
    public function provides()
31
    {
32
        return [\App\Contracts\Registrar::class];
33
    }
34
}
35