classes/Routing/ControllerTrait.php
protected function redirect($name, array $params = array(), $statusCode = 302)
	{
		return new RedirectResponse($this->url($name, $params), $statusCode);
	}
protected function redirect($name, array $params = array(), $statusCode = 302)
	{
		return new RedirectResponse($this->url($name, $params), $statusCode);
	}
Create a redirect response.

@param  string  $name       Name of the route to redirect to
@param  array   $params     Route parameters
@param  integer $statusCode Default: 302

@return \Symfony\Component\HttpFoundation\RedirectResponse