ConfigProvider::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 15
rs 9.9666
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Antidot\React\Socket\Container\Config;
6
7
use Antidot\React\Socket\Container\ReactSocketServerFactory;
8
use Antidot\React\Socket\ReactSocketServer;
9
10
class ConfigProvider
11
{
12
    public function __invoke(): array
13
    {
14
        return [
15
            'dependencies' => [
16
                'factories' => [
17
                    ReactSocketServer::class => ReactSocketServerFactory::class,
18
                ]
19
            ],
20
            'console' => [
21
                'commands' => [
22
                    ReactSocketServer::NAME => ReactSocketServer::class,
23
                ]
24
            ],
25
            'react_socket_server' => [
26
                'uri' => '0.0.0.0:8080',
27
            ]
28
        ];
29
    }
30
}
31