Completed
Push — master ( f3d591...31e394 )
by Ben
02:18
created

SquantoManagerServiceProvider::boot()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 11
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 11
ccs 0
cts 7
cp 0
rs 9.4285
cc 2
eloc 4
nc 2
nop 0
crap 6
1
<?php
2
3
namespace Thinktomorrow\Squanto;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class SquantoManagerServiceProvider extends ServiceProvider
8
{
9
    protected $defer = false;
10
11
    /**
12
     * @return array
13
     */
14
    public function provides()
15
    {
16
        return [];
17
    }
18
19
    /**
20
     * Bootstrap any application services.
21
     *
22
     * @return void
23
     */
24
    public function boot()
25
    {
26
        if (! $this->app->routesAreCached()) {
27
            require __DIR__ . '/Manager/routes/web.php';
28
        }
29
30
        // Register squanto viewfiles under squanto:: namespace
31
        // allow to override them by making a view file under the resources/views/squanto location
32
        $this->loadViewsFrom(realpath(__DIR__ . '/Manager/views'), 'squanto');
33
34
    }
35
36
    /**
37
     * Register our translator
38
     *
39
     * @return void
40
     */
41
    public function register()
42
    {
43
        //
44
    }
45
}
46