77 abstract public function outItem( $item );
100 # We take over from $wgOut, excepting its cache header info
102 $mimetype = $this->contentType();
103 header(
"Content-type: $mimetype; charset=UTF-8" );
107 $ext = $mimeAnalyzer->getExtensionFromMimeTypeOrNull( $mimetype ) ??
'xml';
108 header(
"Content-Disposition: inline; filename=\"feed.{$ext}\"" );
111 $wgOut->addVaryHeader(
'X-Forwarded-Proto' );
113 $wgOut->sendCacheControl();
123 private function contentType() {
130 'application/rss+xml',
131 'application/atom+xml'
134 return ( in_array(
$ctype, $allowedctypes ) ?
$ctype :
'application/xml' );
142 echo
'<?xml version="1.0"?>' .
"\n";
147class_alias( ChannelFeed::class,
'ChannelFeed' );
if(!defined( 'MW_NO_SESSION') &&MW_ENTRY_POINT !=='cli' $wgOut
A class containing constants representing the names of configuration variables.
const VaryOnXFP
Name constant for the VaryOnXFP setting, for use with Config::get()