/** * * redirect request to the specified url * * @param string $url * @param int $status http status. Must be a 30x status * @param array $cookies * * @deprecated redirect is deprecated since version 2.1 and will be removed in 2.3. You must return an instance of \Symfony\Component\HttpFoundation\RedirectResponse insteand of send a response. * @see generateRedirect instead of this method */ public function redirect($url, $status = 302, $cookies = array()) { trigger_error('redirect is deprecated since version 2.1 and will be removed in 2.3. You must return an instance of \\Symfony\\Component\\HttpFoundation\\RedirectResponse insteand of send a response. ', E_USER_DEPRECATED); Redirect::exec($url, $status, $cookies); }
protected function redirect($url, $status = 302) { Redirect::exec($url, $status); }