public function setLocale(\blaze\util\Locale $locale)
 {
     $this->response->setLocale($locale);
 }
예제 #2
0
 private function finish(\blaze\netlet\http\HttpNetletRequest $request, \blaze\netlet\http\HttpNetletResponse $response)
 {
     try {
         $responseWriter = $response->getWriter();
         if (!$responseWriter->isClosed()) {
             $responseWriter->close();
         }
     } catch (Exception $e) {
         // Error of the NetletOutputStream
         var_dump('UNEXPECTED ERROR: ' . $e->getMessage());
     }
 }