Kraken\_Module\Network\Http\HttpRouterTest::createServer PHP Method

createServer() public method

public createServer ( Kraken\Loop\LoopInterface $loop ) : HttpRouter
$loop Kraken\Loop\LoopInterface
return Kraken\Network\Http\Component\Router\HttpRouter
    public function createServer(LoopInterface $loop)
    {
        $this->listener = new SocketListener($this->endpoint, $loop);
        $this->server = new SocketServer($this->listener);
        $this->http = new HttpServer($this->server);
        $this->router = new HttpRouter($this->http);
        return $this->router;
    }