Author: Anton Shevchuk
Inheritance: extends ApplicationException
Example #1
0
 /**
  * Redirect to URL
  *
  * @param  string $url
  * @return void
  * @throws RedirectException
  */
 public static function redirect($url)
 {
     $redirect = new RedirectException();
     $redirect->setUrl($url);
     throw $redirect;
 }