Exemplo n.º 1
0
 /**
  * Redirect to the installation page of the application.
  * This method does not send the response.
  *
  * @param  Response  $response    HTTP response.
  * @param  Request   $request     HTTP request.
  * @return void
  */
 static function redirectToInstall(Response $response, Request $request)
 {
     list($dirname) = Uri\split($request->getUrl());
     $response->setStatus(307);
     $response->setHeader('Location', $dirname . '/install.php');
     $response->setBody('The application is not installed. ' . 'You are going to be redirected to the installation page.');
 }