Completed
Push — master ( 6f4788...09af27 )
by Arthur
14:46
created

BootstrapCacheCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 30
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 4 1
1
<?php
2
3
namespace Foundation\Console;
4
5
use Foundation\Services\BootstrapRegistrarService;
6
use Illuminate\Console\Command;
7
8
class BootstrapCacheCommand extends Command
9
{
10
    /**
11
     * The console command name.
12
     *
13
     * @var string
14
     */
15
    protected $signature = 'bootstrap:cache';
16
17
    /**
18
     * The console command description.
19
     *
20
     * @var string
21
     */
22
    protected $description = 'Cache all available command classes in the Modules namespace.';
23
24
    protected $moduleCommandDirectoryNames = [
25
        'console',
26
        'commands',
27
    ];
28
29
    /**
30
     * Execute the console command.
31
     *
32
     * @return mixed
33
     */
34
    public function handle(BootstrapRegistrarService $service)
35
    {
36
        $service->cache();
37
        $this->info('Commands cached successfully.');
38
    }
39
}
40