BulmaServiceProvider::boot()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 20
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 20
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 13
nc 2
nop 0
1
<?php
2
3
namespace rustymulvaney\bulma;
4
5
use Illuminate\Support\ServiceProvider;
6
use rustymulvaney\bulma\Commands\InstallCommand;
7
8
class BulmaServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Perform post-registration booting of services.
12
     *
13
     * @return void
14
     */
15
    public function boot()
16
    {
17
        if ($this->app->runningInConsole()) {
18
            $this->commands([
19
                InstallCommand::class,
20
            ]);
21
        }
22
23
        $this->loadRoutesFrom(__DIR__.'/Routes/routes.php');
24
25
        $this->publishes([
26
            __DIR__.'/../stubs/js'    => resource_path('assets/js'),
27
            __DIR__.'/../stubs/sass'  => resource_path('assets/sass'),
28
            __DIR__.'/../stubs/views' => resource_path('views'),
29
        ], 'install');
30
31
        $this->publishes([
32
            __DIR__.'/../config/bulma.php' => config_path('bulma.php'),
33
        ], 'config');
34
    }
35
36
    /**
37
     * Register any package services.
38
     *
39
     * @return void
40
     */
41
    public function register()
42
    {
43
        //
44
    }
45
}
46