public function redirect($key, $config = [], $statusCode = 302)
    {
        $router = $this->getService('Router');
        $url = $this->getService('Url');
        $urlNew = $url->generate($key, $config);
        $router->redirect($urlNew, $statusCode);
    }
public function redirect($key, $config = [], $statusCode = 302)
    {
        $router = $this->getService('Router');
        $url = $this->getService('Url');
        $urlNew = $url->generate($key, $config);
        $router->redirect($urlNew, $statusCode);
    }
public function redirect ( $ key , $ config = [ ] , $ statusCode = 302 ) { $ router = $ this -> getService ( 'Router' ) ; $ url = $ this -> getService ( 'Url' ) ; $ urlNew = $ url -> generate ( $ key , $ config ) ; $ router -> redirect ( $ urlNew , $ statusCode ) ; }
deprecated and must use redirectAbs
deprecated and must use redirectAbs