Completed
Push — master ( abd772...b3b6a4 )
by Sergi Tur
03:23
created

BootCommand::boot()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 10
rs 9.4285
cc 2
eloc 7
nc 2
nop 0
1
<?php
2
3
namespace Acacha\Llum\Console;
4
5
use Acacha\Llum\Traits\DevTools;
6
7
/**
8
 * Class BootCommand.
9
 */
10
class BootCommand extends LlumCommand
11
{
12
    use DevTools;
13
    /**
14
     * Command name.
15
     *
16
     * @var string
17
     */
18
    protected $commandName = 'boot';
19
20
    /**
21
     * Command description.
22
     *
23
     * @var string
24
     */
25
    protected $commandDescription = 'Execute all common first tasks in laravel project';
26
27
    /**
28
     * Method to execute.
29
     *
30
     * @var string
31
     */
32
    protected $method = 'boot';
33
34
    /**
35
     * Executes boot command.
36
     */
37
    protected function boot()
38
    {
39
        if ($this->devtools() == -1) {
40
            return;
41
        }
42
        $this->touchSqliteFile();
43
        $this->configEnv();
44
        $this->migrate();
45
        $this->serve();
46
    }
47
}
48