MediaWiki master
index.php
Go to the documentation of this file.
1<?php // For broken web servers: ><pre>
2
3// If you are reading this in your web browser, your server is probably
4// not configured correctly to run PHP applications!
5//
6// See the README, INSTALL, and UPGRADE files for basic setup instructions
7// and pointers to the online documentation.
8//
9// https://www.mediawiki.org/wiki/Special:MyLanguage/MediaWiki
10//
11// -------------------------------------------------
12
41
42define( 'MW_ENTRY_POINT', 'index' );
43
44// Bail on old versions of PHP, or if composer has not been run yet to install
45// dependencies. Using dirname( __FILE__ ) here because __DIR__ is PHP5.3+.
46// phpcs:ignore MediaWiki.Usage.DirUsage.FunctionFound
47require_once dirname( __FILE__ ) . '/includes/PHPVersionCheck.php';
48wfEntryPointCheck( 'html', dirname( $_SERVER['SCRIPT_NAME'] ) );
49
50require __DIR__ . '/includes/WebStart.php';
51
52// Create the entry point object and call run() to handle the request.
54 RequestContext::getMain(),
56 // TODO: Maybe create a light-weight services container here instead.
57 MediaWikiServices::getInstance()
58) )->run();
wfEntryPointCheck( $format='text', $scriptPath='/')
Check PHP version and that external dependencies are installed, and display an informative error if e...
run()
Run the job.
The index.php entry point for web browser navigations, usually routed to an Action or SpecialPage sub...
Group all the pieces relevant to the context of a request into one instance.
Utility class wrapping PHP runtime state.
Service locator for MediaWiki core services.