Completed
Push — master ( 5c52b8...379248 )
by ARCANEDEV
03:49
created

ClearCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 38
ccs 0
cts 13
cp 0
rs 10
wmc 2
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 14 2
1
<?php namespace Arcanesoft\Foundation\Console;
2
3
/**
4
 * Class     ClearCommand
5
 *
6
 * @package  Arcanesoft\Foundation\Console
7
 * @author   ARCANEDEV <[email protected]>
8
 */
9
class ClearCommand extends Command
10
{
11
    /* ------------------------------------------------------------------------------------------------
12
     |  Properties
13
     | ------------------------------------------------------------------------------------------------
14
     */
15
    /**
16
     * The name and signature of the console command.
17
     *
18
     * @var string
19
     */
20
    protected $signature = 'foundation:clear';
21
22
    /**
23
     * The console command description.
24
     *
25
     * @var string
26
     */
27
    protected $description = 'Remove the compiled class/view files, flush the application cache and remove the route/configuration cache files.';
28
29
    /**
30
     * Execute the console command.
31
     */
32
    public function handle()
33
    {
34
        $commands = [
35
            'clear-compiled',
36
            'cache:clear',
37
            'config:clear',
38
            'route:clear',
39
            'view:clear',
40
        ];
41
42
        foreach ($commands as $command) {
43
            $this->call($command);
44
        }
45
    }
46
}
47