realm = $realm; } /** * Uses the passed in $writer to set the HTTP authentication header. * * @param ezcMvcResponseWriter $writer */ public function process( ezcMvcResponseWriter $writer ) { if ( $writer instanceof ezcMvcHttpResponseWriter ) { $writer->headers['WWW-Authenticate'] = "Basic realm=\"{$this->realm}\""; } } } ?>