Completed
Push — master ( 5bda77...cb2c73 )
by Aleh
10s
created

Cli::loadCommands()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace Padawan\Framework\Application;
4
5
use DI\Container;
6
use Padawan\Framework\Application;
7
use Padawan\Command\GenerateCommand;
8
use Padawan\Command\PluginCommand;
9
10
class Cli extends Application
11
{
12
    public function __construct()
13
    {
14
        parent::__construct("Padawan CLI");
15
    }
16
17
    /**
18
     * @return Container
19
     */
20
    public function getContainer()
21
    {
22
        return $this->container;
23
    }
24
25
    protected function loadCommands()
26
    {
27
        $this->add(new GenerateCommand);
28
        $this->add(new PluginCommand);
29
    }
30
}
31