public function initModule(RouterInterface $router, LoopInterface $loop)
    {
        $this->router = $router;
        $this->setLoop($loop);

        $this->router->addInternalClient($this);
    }
public function initModule(RouterInterface $router, LoopInterface $loop)
    {
        $this->router = $router;
        $this->setLoop($loop);

        $this->router->addInternalClient($this);
    }
public function initModule ( RouterInterface $ router , LoopInterface $ loop ) { $ this -> router = $ router ; $ this -> setLoop ( $ loop ) ; $ this -> router -> addInternalClient ( $ this ) ; }
Called by the router when it is added

@param RouterInterface $router
@param LoopInterface $loop
Called by the router when it is added