| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function __construct($httpHost, $port, $address, LoopInterface $loop) |
||
| 16 | { |
||
| 17 | $this->httpHost = $httpHost; |
||
| 18 | $this->port = $port; |
||
| 19 | |||
| 20 | $socket = new Reactor($address.':'.$port, $loop); |
||
| 21 | |||
| 22 | $this->routes = new RouteCollection; |
||
| 23 | |||
| 24 | $urlMatcher = new UrlMatcher($this->routes, new RequestContext); |
||
| 25 | |||
| 26 | $router = new Router($urlMatcher); |
||
| 27 | |||
| 28 | $httpServer = new HttpServer($router); |
||
| 29 | |||
| 30 | $this->_server = new IoServer($httpServer, $socket, $loop); |
||
| 31 | } |
||
| 32 | } |
||
| 33 |