Completed
Push — master ( 97ea80...ba3d7b )
by ARCANEDEV
10s
created

PublishCommand::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
c 0
b 0
f 0
ccs 0
cts 6
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
crap 2
1
<?php namespace Arcanesoft\Media\Console;
2
3
use Arcanesoft\Media\MediaServiceProvider;
4
5
/**
6
 * Class     PublishCommand
7
 *
8
 * @package  Arcanesoft\Media\Console
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class PublishCommand extends Command
12
{
13
    /* ------------------------------------------------------------------------------------------------
14
     |  Properties
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    /**
18
     * The name and signature of the console command.
19
     *
20
     * @var string
21
     */
22
    protected $signature = 'media:publish';
23
24
    /**
25
     * The console command description.
26
     *
27
     * @var string
28
     */
29
    protected $description = 'Publish media config, assets and other stuff.';
30
31
    /* ------------------------------------------------------------------------------------------------
32
     |  Main Functions
33
     | ------------------------------------------------------------------------------------------------
34
     */
35
    /**
36
     * Execute the console command.
37
     */
38
    public function handle()
39
    {
40
        $this->call('vendor:publish', [
41
            '--provider' => MediaServiceProvider::class,
42
        ]);
43
    }
44
}
45