Example #1
0
 public function process(ezcMvcResponseWriter $writer)
 {
     if ($writer instanceof ezcMvcHttpResponseWriter) {
         // @TODO message lookup
         $writer->headers["HTTP/1.1 " . ezpOauthErrorType::httpCodeForError($this->errorType)] = "";
     }
 }
Example #2
0
 public function process(ezcMvcResponseWriter $writer)
 {
     if ($writer instanceof ezcMvcHttpResponseWriter) {
         $writer->headers["HTTP/1.1 " . ezpOauthErrorType::httpCodeForError($this->errorType)] = "";
     }
     if ($this->message !== null) {
         $writer->response->body = $this->message;
     }
 }