Passed
Push — master ( 07ff08...756a96 )
by Arthur
05:20
created

PublishHorizonAssetsCommand::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: arthur
5
 * Date: 30.10.18
6
 * Time: 14:01
7
 */
8
9
namespace Modules\Horizon\Console;
10
11
12
use Artisan;
13
use Illuminate\Console\Command;
14
15
class PublishHorizonAssetsCommand extends Command
16
{
17
    /**
18
     * The console command name.
19
     *
20
     * @var string
21
     */
22
    protected $signature = 'horizon:publish:assets';
23
24
    /**
25
     * The console command description.
26
     *
27
     * @var string
28
     */
29
    protected $description = 'Publish Horizon Assets.';
30
31
    /**
32
     * Execute the console command.
33
     *
34
     * @return void
35
     */
36
    public function handle()
37
    {
38
        Artisan::call('vendor:publish',[
39
            "--provider"=>"Laravel\Horizon\HorizonServiceProvider"
40
        ]);
41
        $this->info('Horizon assets published.');
42
    }
43
}