installer: Namespace more installer classes
[mediawiki.git] / index.php
blob221b32e8bf6adb1e7e888a5af94b46ffb600f940
1 <?php // For broken web servers: ><pre>
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
11 // -------------------------------------------------
13 /**
14 * The.php entry point for web browser navigations, usually routed to
15 * an Action or SpecialPage subclass.
17 * @see MediaWiki\Actions\ActionEntryPoint The implementation.
19 * This program is free software; you can redistribute it and/or modify
20 * it under the terms of the GNU General Public License as published by
21 * the Free Software Foundation; either version 2 of the License, or
22 * (at your option) any later version.
24 * This program is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 * GNU General Public License for more details.
29 * You should have received a copy of the GNU General Public License along
30 * with this program; if not, write to the Free Software Foundation, Inc.,
31 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32 * http://www.gnu.org/copyleft/gpl.html
34 * @file
37 use MediaWiki\Actions\ActionEntryPoint;
39 define( 'MW_ENTRY_POINT', 'index' );
41 // Bail on old versions of PHP, or if composer has not been run yet to install
42 // dependencies. Using dirname( __FILE__ ) here because __DIR__ is PHP5.3+.
43 // phpcs:ignore MediaWiki.Usage.DirUsage.FunctionFound
44 require_once dirname( __FILE__ ) . '/includes/PHPVersionCheck.php';
45 wfEntryPointCheck( 'html', dirname( $_SERVER['SCRIPT_NAME'] ) );
47 require __DIR__ . '/includes/WebStart.php';
49 // Create the entry point object and call run() to handle the request.
50 ( new ActionEntryPoint( RequestContext::getMain() ) )->run();