Completed
Push — master ( 0f9065...3b4731 )
by Basenko
8s
created

InstallCommand::handle()   A

Complexity

Conditions 2
Paths 1

Size

Total Lines 12
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 9
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 12
ccs 9
cts 9
cp 1
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 8
nc 1
nop 1
crap 2
1
<?php
2
3
namespace MadWeb\Initializer\Console\Commands;
4
5
use Illuminate\Contracts\Container\Container;
6
7
class InstallCommand extends AbstractInitializeCommand
8
{
9
    /**
10
     * The name and signature of the console command.
11
     *
12
     * @var string
13
     */
14
    protected $signature = 'app:install
15
                            {--root : Run commands which requires root privileges}';
16
17
    /**
18
     * The console command description.
19
     *
20
     * @var string
21
     */
22
    protected $description = 'Install the application according to current environment';
23
24
    /**
25
     * Returns instance of Install class which defines initializing runner chain.
26
     *
27
     * {@inheritdoc}
28
     */
29 63
    protected function getInitializerInstance(Container $container)
30
    {
31 63
        return $container->make('project.installer');
32
    }
33
}
34