Completed
Push — master ( 6435a2...ebbf46 )
by Julien
01:57
created

Console   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 24
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
1
<?php
2
3
namespace Eole\Sandstone\Tests\Integration\App;
4
5
use Symfony\Component\Console\Application as ConsoleApplication;
6
use Eole\Sandstone\Tests\Integration\App\App as SilexApplication;
7
8
class Console extends ConsoleApplication
9
{
10
    /**
11
     * @var SilexApplication
12
     */
13
    private $silexApplication;
14
15
    /**
16
     * Console application constructor.
17
     *
18
     * @param SilexApplication $silexApplication
19
     */
20
    public function __construct(SilexApplication $silexApplication)
21
    {
22
        parent::__construct('My Sandstone application');
23
24
        $this->silexApplication = $silexApplication;
25
        $this->silexApplication->boot();
26
27
        $this->addCommands([
28
            new PushMessageCommand($this->silexApplication['dispatcher']),
29
        ]);
30
    }
31
}
32