MediaWiki master
WebStart.php File Reference

The set up for all MediaWiki web requests. More...

Go to the source code of this file.

Functions

 wfWebStartNoLocalSettings (SettingsBuilder $settings)
 
if(!defined('MW_CONFIG_CALLBACK')) wfWebStartSetup (SettingsBuilder $settings)
 

Variables

 if (!defined('MW_SETUP_CALLBACK'))
 
const MEDIAWIKI true
 

Detailed Description

The set up for all MediaWiki web requests.

It does:

  • web-related security checks,
  • decide how and from where to load site configuration (LocalSettings.php),
  • load Setup.php.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html

Definition in file WebStart.php.

Function Documentation

◆ wfWebStartNoLocalSettings()

wfWebStartNoLocalSettings ( SettingsBuilder $settings)
Parameters
SettingsBuilder$settings
Returns
never

Definition at line 47 of file WebStart.php.

◆ wfWebStartSetup()

if(!defined( 'MW_CONFIG_CALLBACK')) wfWebStartSetup ( SettingsBuilder $settings)

Definition at line 66 of file WebStart.php.

Variable Documentation

◆ if

if ( ! defined'MW_SETUP_CALLBACK')
Initial value:
{
if ( !defined( 'MW_NO_SESSION_HANDLER' ) ) {
MediaWiki\Session\PHPSessionHandler::install(
MediaWiki\Session\SessionManager::singleton()
);
}
}
global $wgUser
$wgUser
Definition Setup.php:547
A helper class for throttling authentication attempts.

Definition at line 81 of file WebStart.php.

Referenced by Wikimedia\Rdbms\Database\getScopedLockAndFlush(), and MediaWiki\Revision\RevisionStore\newRevisionsFromBatch().

◆ MEDIAWIKI

const MEDIAWIKI true

Definition at line 41 of file WebStart.php.