Page MenuHomeWickedGov Phorge

WebInstallerDocument.php
No OneTemporary

Size
759 B
Referenced Files
None
Subscribers
None

WebInstallerDocument.php

<?php
/**
* @license GPL-2.0-or-later
* @file
* @ingroup Installer
*/
namespace MediaWiki\Installer;
abstract class WebInstallerDocument extends WebInstallerPage {
/**
* @return string
*/
abstract protected function getFileName();
/** @inheritDoc */
public function execute() {
$text = $this->getFileContents();
$text = InstallDocFormatter::format( $text );
$this->parent->output->addWikiTextAsInterface( $text );
$this->startForm();
$this->endForm( false );
return '';
}
/**
* @return string
*/
public function getFileContents() {
$file = __DIR__ . '/../../' . $this->getFileName();
if ( !file_exists( $file ) ) {
return wfMessage( 'config-nofile', $file )->plain();
}
return file_get_contents( $file );
}
}

File Metadata

Mime Type
text/x-php
Expires
Aug 17 2026, 18:23 (10 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
87/c3/c8aed781e83f4018411f09a61150
Default Alt Text
WebInstallerDocument.php (759 B)

Event Timeline