FileStreamServiceProvider::provides()   A
last analyzed

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 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php namespace App\Providers;
2
3
use Illuminate\Support\ServiceProvider;
4
5
class FileStreamServiceProvider 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 19
    public function register()
21
    {
22 19
        $this->app->singleton('filestream', \App\Services\FileStream::class);
23 19
    }
24
25
    /**
26
     * Get the services provided by the provider.
27
     *
28
     * @return array
29
     */
30
    public function provides()
31
    {
32
        return ['filestream'];
33
    }
34
}
35