kernel/core/Router.php
public function runByFoward(string $sRoute, array $aParams)
    {
        $this->_create_constant();

        if (isset($_SERVER) && isset($_SERVER['HTTP_HOST'])) {

            foreach (Config::get('route') as $sHost => $oHost) {

                if ((!strstr($sHost, '/') && $sHost == $_SERVER['HTTP_HOST'])
                    || (strstr($sHost, '/') && strstr($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], $sHost))) {

                    $this->_oRoutes = $oHost;

                    if (strstr($sHost, '/') && strstr($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], $sHost)) {

                        $this->_sBaseUri = preg_replace('#^[^/]+#', '', $sHost);
                    }

                    foreach ($oHost->routes as $sKey => $oRoute) {

                        $this->_route($oRoute, $sRoute);
                    }
                }
            }
        }
        else if (defined('STDIN')) {

            $oBatch = Config::get('route')->batch->script->{$sRoute};
            echo $this->_loadController($oBatch->controller, $oBatch->action, $aParams);
        }
    }
public function runByFoward(string $sRoute, array $aParams)
    {
        $this->_create_constant();

        if (isset($_SERVER) && isset($_SERVER['HTTP_HOST'])) {

            foreach (Config::get('route') as $sHost => $oHost) {

                if ((!strstr($sHost, '/') && $sHost == $_SERVER['HTTP_HOST'])
                    || (strstr($sHost, '/') && strstr($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], $sHost))) {

                    $this->_oRoutes = $oHost;

                    if (strstr($sHost, '/') && strstr($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], $sHost)) {

                        $this->_sBaseUri = preg_replace('#^[^/]+#', '', $sHost);
                    }

                    foreach ($oHost->routes as $sKey => $oRoute) {

                        $this->_route($oRoute, $sRoute);
                    }
                }
            }
        }
        else if (defined('STDIN')) {

            $oBatch = Config::get('route')->batch->script->{$sRoute};
            echo $this->_loadController($oBatch->controller, $oBatch->action, $aParams);
        }
    }
run the routeur by the forwarsd metho (in the controller)

@access public
@param  string $sRoute route we wantload
@param  array $aParams parameters to passe
@return void