Completed
Pull Request — master (#106)
by De Cramer
13:31
created

DediEventsTestCommand   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A configure() 0 5 1
A execute() 0 6 1
1
<?php
2
3
namespace eXpansion\Framework\Core\Command;
4
5
use eXpansion\Framework\Core\Services\ApplicationDebug;
6
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
7
use Symfony\Component\Console\Input\InputInterface;
8
use Symfony\Component\Console\Output\OutputInterface;
9
10
/**
11
 * Class eXpansion....
12
 *
13
 * @package eXpansion\Framework\Core\Command
14
 */
15
class DediEventsTestCommand extends ContainerAwareCommand
16
{
17
    /** @var  ApplicationDebug */
18
    protected $expansionApplicationDebug;
19
20
    /**
21
     * DediEventsTestCommand constructor.
22
     *
23
     * @param ApplicationDebug $expansionApplicationDebug
24
     */
25
    public function __construct(ApplicationDebug $expansionApplicationDebug)
26
    {
27
        parent::__construct();
28
29
        $this->expansionApplicationDebug = $expansionApplicationDebug;
30
    }
31
32
33
    protected function configure()
34
    {
35
        $this->setName('eXpansion:test:dedicated')
36
            ->setDescription("Test Dedicated events.");
37
    }
38
39
    protected function execute(InputInterface $input, OutputInterface $output)
40
    {
41
        $this->expansionApplicationDebug
42
            ->init($output)
43
            ->run();
44
    }
45
}
46