Example #1
0
 /**
  * @param string  $url
  * @param integer $status
  *
  * @return RedirectResponse
  */
 public function redirect($url, $status = 302)
 {
     if ($this->config->isHeaderRedirection()) {
         return new Response('', 200, array('X-SYLIUS-LOCATION' => $url . $this->config->getRedirectHash()));
     }
     return new RedirectResponse($url . $this->config->getRedirectHash(), $status);
 }