public static function permanentRedirect($url, $externalRedirect = false) {
		/** @var Response $response */
		$response = new static();
		$response->redirect($url, $externalRedirect, self::HTTP_PERMANENT_REDIRECT);
		return $response;
	}
public static function permanentRedirect($url, $externalRedirect = false) {
		/** @var Response $response */
		$response = new static();
		$response->redirect($url, $externalRedirect, self::HTTP_PERMANENT_REDIRECT);
		return $response;
	}
public static function permanentRedirect ( $ url , $ externalRedirect = false ) { /** @var Response $response */ $ response = new static ( ) ; $ response -> redirect ( $ url , $ externalRedirect , self :: HTTP_PERMANENT_REDIRECT ) ; return $ response ; }
Convenience function to create a 301 response
@see Response::redirect()
@static
@param string $url The url to redirect to
@param boolean $externalRedirect Treat the redirect as external
@return Response
Convenience function to create a 301 response