78 abstract public function outItem( $item );
101 # We take over from $wgOut, excepting its cache header info
103 $mimetype = $this->contentType();
104 header(
"Content-type: $mimetype; charset=UTF-8" );
108 $ext = $mimeAnalyzer->getExtensionFromMimeTypeOrNull( $mimetype ) ??
'xml';
109 header(
"Content-Disposition: inline; filename=\"feed.{$ext}\"" );
112 $wgOut->addVaryHeader(
'X-Forwarded-Proto' );
114 $wgOut->sendCacheControl();
124 private function contentType() {
131 'application/rss+xml',
132 'application/atom+xml'
135 return ( in_array(
$ctype, $allowedctypes ) ?
$ctype :
'application/xml' );
143 echo
'<?xml version="1.0"?>' .
"\n";
148class_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()