Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function __construct($port, LoopInterface $loop, LoggerInterface $logger) |
||
20 | { |
||
21 | $this->logger = $logger; |
||
22 | $this->handlers = []; |
||
23 | |||
24 | $this->socket = new SocketServer($port, $loop); |
||
25 | $this->http = new Server($this->socket); |
||
26 | |||
27 | $this->http->on('request', [$this, 'request']); |
||
28 | $this->http->on('error', [$this, 'error']); |
||
29 | $this->socket->on('error', [$this, 'error']); |
||
30 | } |
||
31 | |||
54 |