Passed
Push — main ( 1d1c5b...83bc52 )
by Daniel
04:23
created

BootstrapCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 8
c 1
b 0
f 0
dl 0
loc 19
ccs 0
cts 5
cp 0
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Uxmp\Core\Component\Cli;
6
7
use Ahc\Cli\Input\Command;
8
use Psr\Container\ContainerInterface;
9
use Uxmp\Core\Component\Setup\BootstrapperInterface;
10
11
final class BootstrapCommand extends Command
12
{
13
    public function __construct(
14
        private readonly ContainerInterface $dic,
0 ignored issues
show
Bug introduced by
A parse error occurred: Syntax error, unexpected T_STRING, expecting T_VARIABLE on line 14 at column 25
Loading history...
15
    ) {
16
        parent::__construct(
17
            'setup:bootstrap',
18
            'Bootstraps uxmp'
19
        );
20
21
        $this
22
            ->usage(
23
                '<bold>  $0 sb</end> <comment></end> ## Bootstraps uxmp<eol/>'
24
            );
25
    }
26
27
    public function execute(): void
28
    {
29
        $this->dic->get(BootstrapperInterface::class)->bootstrap($this->app()?->io());
30
    }
31
}
32