Completed
Push — master ( a76360...3b8ebd )
by Manuel
04:51 queued 03:32
created

PublishCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 22
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 10 1
1
<?php
2
3
namespace Oscer\Cms\Core\Commands;
4
5
use Illuminate\Console\Command;
6
7
class PublishCommand extends Command
8
{
9
    protected $signature = 'cms:publish';
10
11
    protected $description = 'Publish all cms resources';
12
13
    /**
14
     * Execute the console command.
15
     *
16
     * @return void
17
     */
18
    public function handle()
19
    {
20
        $this->comment('Publishing cms assets...');
21
        $this->callSilent('vendor:publish', ['--tag' => 'cms-assets']);
22
23
        $this->comment('Publishing cms Configuration...');
24
        $this->callSilent('vendor:publish', ['--tag' => 'cms-config']);
25
26
        $this->info('Laravel cms was installed successfully.');
27
    }
28
}
29