Completed
Push — master ( 76453f...1c4278 )
by Julien
06:31
created

App::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 20
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 20
rs 9.4285
cc 1
eloc 11
nc 1
nop 1
1
<?php
2
3
namespace Eole\Sandstone\Tests\Integration\App;
4
5
use Eole\Sandstone\Application;
6
7
class App extends Application
8
{
9
    public function __construct(array $values = array())
10
    {
11
        parent::__construct($values);
12
13
        $this->register(new \Eole\Sandstone\Serializer\ServiceProvider());
14
15
        $this->register(new \Eole\Sandstone\Websocket\ServiceProvider(), [
16
            'sandstone.websocket.server' => [
17
                'bind' => '0.0.0.0',
18
                'port' => '8080',
19
            ],
20
        ]);
21
22
        $this['serializer.builder']->addMetadataDir(
23
            __DIR__,
24
            'Eole\\Sandstone\\Tests\\App'
25
        );
26
27
        $this->register(new \Eole\Sandstone\Push\ServiceProvider());
28
    }
29
}
30