src/Graviton/CoreBundle/Listener/RequestHostListener.php
public function onKernelRequest()
    {
        if (!is_null($this->host)) {
            $this->router->getContext()->setHost($this->host);
        }

        if (!is_null($this->portHttp)) {
            $this->router->getContext()->setHttpPort($this->portHttp);
        }

        if (!is_null($this->portHttps)) {
            $this->router->getContext()->setHttpsPort($this->portHttps);
        }
    }
public function onKernelRequest()
    {
        if (!is_null($this->host)) {
            $this->router->getContext()->setHost($this->host);
        }

        if (!is_null($this->portHttp)) {
            $this->router->getContext()->setHttpPort($this->portHttp);
        }

        if (!is_null($this->portHttps)) {
            $this->router->getContext()->setHttpsPort($this->portHttps);
        }
    }
public function onKernelRequest ( ) { if ( ! is_null ( $ this -> host ) ) { $ this -> router -> getContext ( ) -> setHost ( $ this -> host ) ; } if ( ! is_null ( $ this -> portHttp ) ) { $ this -> router -> getContext ( ) -> setHttpPort ( $ this -> portHttp ) ; } if ( ! is_null ( $ this -> portHttps ) ) { $ this -> router -> getContext ( ) -> setHttpsPort ( $ this -> portHttps ) ; } }
modify the router context params if configured

@return void
modify the router context params if configured