Completed
Push — master ( 8c9e3e...4108a9 )
by Mike
04:47
created

Publish::handle()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 5
nc 2
nop 0
1
<?php namespace GeneaLabs\LaravelCaffeine\Console\Commands;
2
3
use GeneaLabs\LaravelCaffeine\Providers\Service;
4
use Illuminate\Console\Command;
5
use Illuminate\Contracts\Console\Kernel;
6
7
class Publish extends Command
8
{
9
    protected $signature = 'caffeine:publish {--config}';
10
    protected $description = 'Publish configuration file of the Caffeine for Laravel package.';
11
12
    public function handle()
13
    {
14
        if ($this->option('config')) {
15
            $this->call('vendor:publish', [
16
                '--provider' => Service::class,
17
                '--tag' => ['config'],
18
                '--force' => true,
19
            ]);
20
        }
21
    }
22
}
23