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

Console::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 11
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 6
nc 1
nop 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