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

SquantoManagerServiceProvider   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 4
c 0
b 0
f 0
lcom 1
cbo 1
dl 0
loc 39
ccs 0
cts 14
cp 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A provides() 0 4 1
A boot() 0 11 2
A register() 0 4 1
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