MediaWiki master
Setup.php
Go to the documentation of this file.
1<?php
39// phpcs:disable MediaWiki.Usage.DeprecatedGlobalVariables
51use MediaWiki\MainConfigSchema;
67use Psr\Log\LoggerInterface;
69use Wikimedia\RequestTimeout\RequestTimeout;
72
80// This file must be included from a valid entry point (e.g. WebStart.php, Maintenance.php)
81if ( !defined( 'MEDIAWIKI' ) ) {
82 exit( 1 );
83}
84
85// The MW_ENTRY_POINT constant must always exists, to make it safe to access.
86// For compat, we do support older and custom MW entrypoints that don't set this,
87// in which case we assign a default here.
88if ( !defined( 'MW_ENTRY_POINT' ) ) {
94 define( 'MW_ENTRY_POINT', 'unknown' );
95}
96
102$IP = wfDetectInstallPath(); // ensures MW_INSTALL_PATH is defined
103
109require_once MW_INSTALL_PATH . '/includes/AutoLoader.php';
110require_once MW_INSTALL_PATH . '/includes/Defines.php';
111
112// Assert that composer dependencies were successfully loaded
113if ( !interface_exists( LoggerInterface::class ) ) {
114 $message = (
115 '<strong>Error: Missing external libraries.</strong> ' .
116 'MediaWiki depends on external libraries bundled with most MediaWiki distributions. ' .
117 "When installing MediaWiki from its Git reposistory, these must be installed separately.\n\n" .
118 'Please see the <a href="https://www.mediawiki.org/wiki/Download_from_Git' .
119 '#Fetch_external_libraries">instructions for installing libraries</a> on mediawiki.org ' .
120 'for help on installing the required libraries.'
121 );
122 http_response_code( 500 );
123 echo $message;
124 error_log( $message );
125 exit( 1 );
126}
127
128// Deprecated global variable for backwards-compatibility.
129// New code should check MW_ENTRY_POINT directly.
131
138
140
141$wgSettings = SettingsBuilder::getInstance();
142
143if ( defined( 'MW_USE_CONFIG_SCHEMA_CLASS' ) ) {
144 // Load config schema from MainConfigSchema. Useful for running scripts that
145 // generate other representations of the config schema. This is slow, so it
146 // should not be used for serving web traffic.
147 $wgSettings->load( new ReflectionSchemaSource( MainConfigSchema::class ) );
148} else {
149 $wgSettings->load( new PhpSettingsSource( MW_INSTALL_PATH . '/includes/config-schema.php' ) );
150}
151
152require_once MW_INSTALL_PATH . '/includes/GlobalFunctions.php';
153
154// Install callback for normalizing headers.
155HeaderCallback::register();
156
157// Tell HttpStatus to use HeaderCallback for reporting warnings when
158// attempting to set headers after the headers have already been sent.
159HttpStatus::registerHeadersSentCallback(
160 HeaderCallback::warnIfHeadersSent( ... )
161);
162
163// Set the encoding used by PHP for reading HTTP input, and writing output.
164// This is also the default for mbstring functions.
165mb_internal_encoding( 'UTF-8' );
166
171// Initialize some config settings with dynamic defaults, and
172// make default settings available in globals for use in LocalSettings.php.
173$wgSettings->putConfigValues( [
174 MainConfigNames::ExtensionDirectory => MW_INSTALL_PATH . '/extensions',
175 MainConfigNames::StyleDirectory => MW_INSTALL_PATH . '/skins',
176 MainConfigNames::UploadDirectory => MW_INSTALL_PATH . '/images',
177 MainConfigNames::ServiceWiringFiles => [ MW_INSTALL_PATH . '/includes/ServiceWiring.php' ],
178 'Version' => MW_VERSION,
179] );
180$wgSettings->apply();
181
182// $wgSettings->apply() puts all configuration into global variables.
183// If we are not in global scope, make all relevant globals available
184// in this file's scope as well.
185$wgScopeTest = 'MediaWiki Setup.php scope test';
186if ( !isset( $GLOBALS['wgScopeTest'] ) || $GLOBALS['wgScopeTest'] !== $wgScopeTest ) {
187 foreach ( $wgSettings->getConfigSchema()->getDefinedKeys() as $key ) {
188 $var = "wg$key";
189 // phpcs:ignore MediaWiki.NamingConventions.ValidGlobalName.allowedPrefix
190 global $$var;
191 }
192 unset( $key, $var );
193}
194unset( $wgScopeTest );
195
196try {
197 if ( defined( 'MW_CONFIG_CALLBACK' ) ) {
198 call_user_func( MW_CONFIG_CALLBACK, $wgSettings );
199 } else {
200 wfDetectLocalSettingsFile( MW_INSTALL_PATH );
201
202 if ( getenv( 'MW_USE_LOCAL_SETTINGS_LOADER' ) ) {
203 // NOTE: This will not work for configuration variables that use a prefix
204 // other than "wg".
205 $localSettingsLoader = new LocalSettingsLoader( $wgSettings, MW_INSTALL_PATH );
206 $localSettingsLoader->loadLocalSettingsFile( MW_CONFIG_FILE );
207 unset( $localSettingsLoader );
208 } else {
209 if ( str_ends_with( MW_CONFIG_FILE, '.php' ) ) {
210 // make defaults available as globals
211 $wgSettings->apply();
212 require_once MW_CONFIG_FILE;
213 } else {
214 $wgSettings->loadFile( MW_CONFIG_FILE );
215 }
216 }
217 }
218
219 // Make settings loaded by LocalSettings.php available in globals for use here
220 $wgSettings->apply();
221} catch ( MissingExtensionException $e ) {
222 // Make a common mistake give a friendly error
223 $e->render();
224}
225
226// If in a wiki-farm, load site-specific settings
227if ( $wgSettings->getConfig()->get( MainConfigNames::WikiFarmSettingsDirectory ) ) {
228 $wikiFarmSettingsLoader = new WikiFarmSettingsLoader( $wgSettings );
229 $wikiFarmSettingsLoader->loadWikiFarmSettings();
230 unset( $wikiFarmSettingsLoader );
231}
232
233// All settings should be loaded now.
234$wgSettings->enterRegistrationStage();
235
243// This constant used to control MediaWiki's integration with PHP sessions, and we allowed users
244// to define it in LocalSettings.php. That integration has been removed and this constant is now
245// always defined for compatibility with code that checked for it.
246if ( !defined( 'MW_NO_SESSION_HANDLER' ) ) {
247 define( 'MW_NO_SESSION_HANDLER', 1 );
248}
249
250if ( defined( 'MW_SETUP_CALLBACK' ) ) {
251 call_user_func( MW_SETUP_CALLBACK, $wgSettings );
252 // Make any additional settings available in globals for use here
253 $wgSettings->apply();
254}
255
256// Apply dynamic defaults declared in config schema callbacks.
258$dynamicDefaults->applyDynamicDefaults( $wgSettings->getConfigBuilder() );
259
260// Make updated config available in global scope.
261$wgSettings->apply();
262
263// Apply dynamic defaults implemented in SetupDynamicConfig.php.
264// Ideally, all logic in SetupDynamicConfig would be converted to
265// callbacks in the config schema.
266require __DIR__ . '/SetupDynamicConfig.php';
267
268if ( defined( 'MW_AUTOLOAD_TEST_CLASSES' ) ) {
269 require_once __DIR__ . '/../tests/Common/TestsAutoLoader.php';
270}
271
272// Start time limit
273if ( $wgRequestTimeLimit && MW_ENTRY_POINT !== 'cli' ) {
274 RequestTimeout::singleton()->setWallTimeLimit( $wgRequestTimeLimit );
275}
276
280if ( defined( 'MW_AUTOLOAD_TEST_CLASSES' ) ) {
281 ExtensionRegistry::getInstance()->setLoadTestClassesAndNamespaces( true );
282}
283
284ExtensionRegistry::getInstance()->setSettingsBuilder( $wgSettings );
285ExtensionRegistry::getInstance()->loadFromQueue();
286// Don't let any other extensions load
287ExtensionRegistry::getInstance()->finish();
288
294if ( defined( 'MW_FINAL_SETUP_CALLBACK' ) ) {
295 call_user_func( MW_FINAL_SETUP_CALLBACK, $wgSettings );
296 // Make any additional settings available in globals for use below
297 $wgSettings->apply();
298}
299
300// Config can no longer be changed.
301$wgSettings->enterReadOnlyStage();
302
303// Determine an appropriate locale (T291234)
304// As of version 8, php no longer inherits the platform's locale so there
305// shouldn't be a need to set a locale. However, setlocale is used to
306// determine if the locale is available. macOS is avoided because setting
307// it to C.UTF-8 changes pcre character classes on that platform.
308if ( PHP_OS_FAMILY !== 'Darwin' && setlocale( LC_ALL, 'C.UTF-8' ) ) {
309 $locale = 'C.UTF-8';
310} else {
311 $locale = 'C';
312}
313// The putenv() is meant to propagate the choice of locale to shell commands
314// so that they will interpret UTF-8 correctly. If you have a problem with a
315// shell command and need to send a special locale, you can override the locale
316// with Command::environment().
317putenv( "LC_ALL={$locale}" );
318unset( $locale );
319
320// Set PHP runtime to the desired timezone
321date_default_timezone_set( $wgLocaltimezone );
322
323MWDebug::setup();
324
325// Enable the global service locator.
326// Trivial expansion of site configuration should go before this point.
327// Any non-trivial expansion that requires calling into MediaWikiServices or other parts of MW.
328MediaWikiServices::allowGlobalInstance();
329
330// Define a constant that indicates that the bootstrapping of the service locator
331// is complete.
332define( 'MW_SERVICE_BOOTSTRAP_COMPLETE', 1 );
333
334MWExceptionRenderer::setShowExceptionDetails( $wgShowExceptionDetails );
335if ( !defined( 'MW_PHPUNIT_TEST' ) ) {
336 // Never install the handler in PHPUnit tests, otherwise PHPUnit's own handler will be unset and things
337 // like convertWarningsToExceptions won't work.
338 MWExceptionHandler::installHandler( $wgLogExceptionBacktrace, $wgPropagateErrors );
339}
340Profiler::init( $wgProfiler );
341
342// Initialize the root span for distributed tracing if we're in a web request context (T340552).
343// Do this here since subsequent setup code, e.g. session initialization or post-setup hooks,
344// may themselves create spans, so the root span needs to have been initialized by then.
345call_user_func( static function (): void {
346 if ( wfIsCLI() ) {
347 return;
348 }
349
350 $tracer = MediaWikiServices::getInstance()->getTracer();
351 $request = RequestContext::getMain()->getRequest();
352 // Backdate the start of the root span to the timestamp where PHP actually started working on this operation.
353 $startTimeNanos = (int)( 1e9 * $_SERVER['REQUEST_TIME_FLOAT'] );
354 // Avoid high cardinality URL path as root span name, instead safely use the HTTP method.
355 // Per OTEL Semantic Conventions, https://opentelemetry.io/docs/specs/semconv/http/http-spans/
356 $spanName = "EntryPoint " . MW_ENTRY_POINT . ".php HTTP {$request->getMethod()}";
358 $rootSpan = $tracer->createRootSpanFromCarrier( $spanName, $wgAllowExternalReqID ? $request->getAllHeaders() : [] );
359 $rootSpan->setSpanKind( SpanInterface::SPAN_KIND_SERVER )
360 ->setAttributes( array_filter( [
361 'http.request.method' => $request->getMethod(),
362 'url.path' => $request->getRequestURL(),
363 'server.name' => $_SERVER['SERVER_NAME'] ?? null,
364 ] ) )
365 ->start( $startTimeNanos );
366 $rootSpan->activate();
367
368 TracerState::getInstance()->setRootSpan( $rootSpan );
369} );
370
371// Non-trivial validation of: $wgServer
372// The FatalError page only renders cleanly after MWExceptionHandler is installed.
373if ( $wgServer === false ) {
374 // T30798: $wgServer must be explicitly set
375 throw new FatalError(
376 '$wgServer must be set in LocalSettings.php. ' .
377 'See <a href="https://www.mediawiki.org/wiki/Manual:$wgServer">' .
378 'https://www.mediawiki.org/wiki/Manual:$wgServer</a>.'
379 );
380}
381
382// Non-trivial expansion of: $wgCanonicalServer, $wgServerName.
383// These require calling global functions.
384// Also here are other settings that further depend on these two.
385if ( $wgCanonicalServer === false ) {
386 $wgCanonicalServer = MediaWikiServices::getInstance()->getUrlUtils()->getCanonicalServer();
387}
389
390if ( $wgServerName !== false ) {
391 wfWarn( '$wgServerName should be derived from $wgCanonicalServer, '
392 . 'not customized. Overwriting $wgServerName.' );
393}
394$wgServerName = parse_url( $wgCanonicalServer, PHP_URL_HOST );
395
396// $wgEmergencyContact and $wgPasswordSender may be false or empty string (T104142)
397if ( !$wgEmergencyContact ) {
398 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
399}
400if ( !$wgPasswordSender ) {
401 $wgPasswordSender = 'apache@' . $wgServerName;
402}
403if ( !$wgNoReplyAddress ) {
405}
406
407// Non-trivial expansion of: $wgSecureLogin
408// (due to calling wfWarn).
409if ( $wgSecureLogin && !str_starts_with( $wgServer, '//' ) ) {
410 $wgSecureLogin = false;
411 wfWarn( 'Secure login was enabled on a server that only supports '
412 . 'HTTP or HTTPS. Disabling secure login.' );
413}
414
415// Now that GlobalFunctions is loaded, set defaults that depend on it.
416if ( $wgTmpDirectory === false ) {
418}
419
421 // Apply $wgSharedDB table aliases for the local LB (all non-foreign DB connections)
422 MediaWikiServices::getInstance()->getDBLoadBalancer()->setTableAliases(
423 array_fill_keys(
425 [
426 'dbname' => $wgSharedDB,
427 'schema' => $wgSharedSchema,
428 'prefix' => $wgSharedPrefix
429 ]
430 )
431 );
432}
433
434// Raise the memory limit if it's too low
435// NOTE: This use wfDebug, and must remain after the MWDebug::setup() call.
437
438// Explicit globals, so this works with bootstrap.php
440
441// Initialize the request object in $wgRequest
442$wgRequest = RequestContext::getMain()->getRequest(); // BackCompat
443
444// Make sure that object caching does not undermine the ChronologyProtector improvements
445if ( RequestContext::getMain()->getRequest()->getCookie( 'UseDC', '' ) === 'master' ) {
446 // The user is pinned to the primary DC, meaning that they made recent changes which should
447 // be reflected in their subsequent web requests. Avoid the use of interim cache keys because
448 // they use a blind TTL and could be stale if an object changes twice in a short time span.
449 MediaWikiServices::getInstance()->getMainWANObjectCache()->useInterimHoldOffCaching( false );
450}
451
452// Useful debug output
453( static function () {
454 $logger = LoggerFactory::getInstance( 'wfDebug' );
455 if ( MW_ENTRY_POINT === 'cli' ) {
456 $self = $_SERVER['PHP_SELF'] ?? '';
457 $logger->debug( "\n\nStart command line script $self" );
458 } else {
459 $request = RequestContext::getMain()->getRequest();
460 $debug = "\n\nStart request {$request->getMethod()} {$request->getRequestURL()}\n";
461 $debug .= "IP: " . $request->getIP() . "\n";
462 $debug .= "HTTP HEADERS:\n";
463 foreach ( $request->getAllHeaders() as $name => $value ) {
464 $debug .= "$name: $value\n";
465 }
466 $debug .= "(end headers)";
467 $logger->debug( $debug );
468 }
469} )();
470
472if ( $settingsWarnings ) {
473 $logger = LoggerFactory::getInstance( 'Settings' );
474 foreach ( $settingsWarnings as $msg ) {
475 $logger->warning( $msg );
476 }
477 unset( $msg );
478 unset( $logger );
479}
480unset( $settingsWarnings );
481
482// Most of the config is out, some might want to run hooks here.
483( new HookRunner( MediaWikiServices::getInstance()->getHookContainer() ) )->onSetupAfterCache();
484
485// Now that variant lists may be available, parse any action paths and article paths
486// as query parameters.
487//
488// Skip title interpolation on API queries where it is useless and sometimes harmful (T18019).
489//
490// Optimization: Skip on load.php and all other entrypoints besides index.php to save time.
491//
492// TODO: Figure out if this can be safely done after everything else in Setup.php (e.g. any
493// hooks or other state that would miss this?). If so, move to wfIndexMain or MediaWiki::run.
494if ( MW_ENTRY_POINT === 'index' ) {
495 RequestContext::getMain()->getRequest()->interpolateTitle();
496}
497
498if ( !defined( 'MW_NO_SESSION' ) && MW_ENTRY_POINT !== 'cli' ) {
499 // @phan-suppress-next-line PhanUndeclaredMethod shutdown() is not part of the public interface
500 register_shutdown_function( MediaWikiServices::getInstance()->getSessionManager()->shutdown( ... ) );
501
502 $contLang = MediaWikiServices::getInstance()->getContentLanguage();
503
504 // Initialize the session
505 try {
506 $session = RequestContext::getMain()->getRequest()->getSession();
507 } catch ( MediaWiki\Session\SessionOverflowException $ex ) {
508 // The exception is because the request had multiple possible
509 // sessions tied for top priority. Report this to the user.
510 $list = [];
511 foreach ( $ex->getSessionInfos() as $info ) {
512 $list[] = $info->getProvider()->describe( $contLang );
513 }
514 $list = $contLang->listToText( $list );
515 throw new HttpError( 400,
516 Message::newFromKey( 'sessionmanager-tie', $list )->inLanguage( $contLang )
517 );
518 }
519
520 unset( $contLang );
521
522 $session->renew();
523 unset( $session );
524}
525
526// Explicit globals, so this works with bootstrap.php
528
535
539$wgOut = RequestContext::getMain()->getOutput(); // BackCompat
540
544$wgTitle = null;
545
546// Explicit globals, so this works with bootstrap.php
548
549// Extension setup functions
550// Entries should be added to this variable during the inclusion
551// of the extension file. This allows the extension to perform
552// any necessary initialisation in the fully initialised environment
553foreach ( $wgExtensionFunctions as $func ) {
554 $func();
555}
556unset( $func ); // no global pollution; destroy reference
557
558// Explicit globals, so this works with bootstrap.php
560
561// If the session user has a valid name but is not yet registered, that means we need to autocreate it.
562if ( !defined( 'MW_NO_SESSION' ) && MW_ENTRY_POINT !== 'cli' ) {
563 $sessionUser = RequestContext::getMain()->getRequest()->getSession()->getUser();
564 $autocreateStatus = null;
565 if ( !$sessionUser->isRegistered() &&
566 MediaWikiServices::getInstance()->getUserNameUtils()->isValid( $sessionUser->getName() )
567 ) {
568 $autocreateStatus = MediaWikiServices::getInstance()->getAuthManager()->autoCreateUser(
569 $sessionUser,
570 MediaWiki\Auth\AuthManager::AUTOCREATE_SOURCE_SESSION
571 );
572 // If successful, the User object has been updated with its new ID
573 }
574 // Autocreation is the last requirement before $wgFullyInitialised lets other code call the User object.
575 $wgFullyInitialised = true;
576
577 // T264370
578 $manager = MediaWikiServices::getInstance()->getSessionManager();
579 if ( $manager instanceof SessionManager ) {
580 $manager->logPotentialSessionLeakage();
581 }
582 unset( $manager );
583
584 if ( $autocreateStatus ) {
585 // If we tried to autocreate a user, ensure that everything is in a consistent state.
586 // Must be after $wgFullyInitialised
587 if ( $autocreateStatus->isOK() ) {
588 if ( !$sessionUser->isRegistered() ) {
589 throw new LogicException( "Session user should be registered, but it's not" );
590 }
591 if ( !RequestContext::getMain()->getUser()->isRegistered() ) {
592 throw new LogicException( "Global context user should be registered, but it's not" );
593 }
594 } else {
595 if ( $sessionUser->isRegistered() ) {
596 throw new LogicException( "Session user should not be registered, but it is" );
597 }
598 if ( RequestContext::getMain()->getUser()->isRegistered() ) {
599 throw new LogicException( "Global context user should not be registered, but it is" );
600 }
601 }
602 }
603 unset( $sessionUser );
604 unset( $autocreateStatus );
605} else {
606 // MW_NO_SESSION or CLI
607 $wgFullyInitialised = true;
608}
wfDetectLocalSettingsFile(?string $installationPath=null)
Decide and remember where to load LocalSettings from.
wfDetectInstallPath()
Decide and remember where mediawiki is installed.
wfIsCLI()
Check if we are running from the commandline.
const MW_VERSION
The running version of MediaWiki.
Definition Defines.php:23
wfTempDir()
Tries to get the system directory for temporary files.
wfWarn( $msg, $callerOffset=1, $level=E_USER_NOTICE)
Send a warning either to the debug log or in a PHP error depending on $wgDevelopmentWarnings.
wfMemoryLimit( $newLimit)
Raise PHP's memory limit (if needed).
global $wgRequest
Definition Setup.php:439
$wgAutoloadClasses
Definition Setup.php:139
if(MW_ENTRY_POINT==='index') if(!defined( 'MW_NO_SESSION') &&MW_ENTRY_POINT !=='cli') global $wgLang
Definition Setup.php:498
if(!defined('MEDIAWIKI')) if(!defined( 'MW_ENTRY_POINT')) $IP
Environment checks.
Definition Setup.php:102
if(MW_ENTRY_POINT==='index') if(!defined( 'MW_NO_SESSION') &&MW_ENTRY_POINT !=='cli') global $wgOut
Definition Setup.php:527
$wgConf
$wgConf hold the site configuration.
Definition Setup.php:137
if( $wgServerName !==false) $wgServerName
Definition Setup.php:394
if(!defined('MW_NO_SESSION_HANDLER')) if(defined( 'MW_SETUP_CALLBACK')) $dynamicDefaults
Customization point after most things are loaded (constants, functions, classes, LocalSettings.
Definition Setup.php:257
if(!interface_exists(LoggerInterface::class)) $wgCommandLineMode
Pre-config setup: Before loading LocalSettings.php.
Definition Setup.php:130
$settingsWarnings
Definition Setup.php:471
if(MW_ENTRY_POINT==='index') if(!defined( 'MW_NO_SESSION') &&MW_ENTRY_POINT !=='cli') global $wgTitle
Definition Setup.php:527
$wgScopeTest
Definition Setup.php:185
if($wgServer===false) if( $wgCanonicalServer===false) $wgVirtualRestConfig['global']['domain']
Definition Setup.php:388
global $wgFullyInitialised
Definition Setup.php:559
global $wgExtensionFunctions
Definition Setup.php:547
$wgSettings
Definition Setup.php:141
if(!defined('MW_SETUP_CALLBACK'))
Definition WebStart.php:71
const MW_ENTRY_POINT
Definition api.php:21
Configuration holder, particularly for multi-wiki sites.
Group all the pieces relevant to the context of a request into one instance.
Debug toolbar.
Definition MWDebug.php:35
Abort the web request with a custom HTML string that will represent the entire response.
Show an error that looks like an HTTP server error.
Definition HttpError.php:23
Handler class for MWExceptions.
Class to expose exceptions to the client (API bots, users, admins using CLI scripts)
This class provides an implementation of the core hook interfaces, forwarding hook calls to HookConta...
Base class for language-specific code.
Definition Language.php:65
Create PSR-3 logger objects.
A class containing constants representing the names of configuration variables.
Service locator for MediaWiki core services.
The Message class deals with fetching and processing of interface message into a variety of formats.
Definition Message.php:144
Profiler base class that defines the interface and some shared functionality.
Definition Profiler.php:26
Load JSON files, and uses a Processor to extract information.
Thrown when ExtensionRegistry cannot open the extension.json or skin.json file.
This serves as the entry point to the MediaWiki session handling system.
Utility for loading LocalSettings files.
Builder class for constructing a Config object from a set of sources during bootstrap.
Settings loaded from a PHP file path as an array structure.
Constructs a settings array based on a PHP class by inspecting class members to construct a schema.
Utility for loading site-specific settings in a multi-tenancy ("wiki farm" or "wiki family") environm...
Stub object for the user language.
Represents a title within MediaWiki.
Definition Title.php:69
Holds shared telemetry state, such as finished span data buffered for export.
$wgMemoryLimit
Config variable stub for the MemoryLimit setting, for use by phpdoc and IDEs.
$wgEmergencyContact
Config variable stub for the EmergencyContact setting, for use by phpdoc and IDEs.
$wgSharedTables
Config variable stub for the SharedTables setting, for use by phpdoc and IDEs.
$wgLogExceptionBacktrace
Config variable stub for the LogExceptionBacktrace setting, for use by phpdoc and IDEs.
$wgTmpDirectory
Config variable stub for the TmpDirectory setting, for use by phpdoc and IDEs.
$wgNoReplyAddress
Config variable stub for the NoReplyAddress setting, for use by phpdoc and IDEs.
$wgProfiler
Config variable stub for the Profiler setting, for use by phpdoc and IDEs.
$wgSecureLogin
Config variable stub for the SecureLogin setting, for use by phpdoc and IDEs.
$wgLocaltimezone
Config variable stub for the Localtimezone setting, for use by phpdoc and IDEs.
$wgShowExceptionDetails
Config variable stub for the ShowExceptionDetails setting, for use by phpdoc and IDEs.
$wgAllowExternalReqID
Config variable stub for the AllowExternalReqID setting, for use by phpdoc and IDEs.
$wgRequestTimeLimit
Config variable stub for the RequestTimeLimit setting, for use by phpdoc and IDEs.
$wgSharedDB
Config variable stub for the SharedDB setting, for use by phpdoc and IDEs.
$wgCanonicalServer
Config variable stub for the CanonicalServer setting, for use by phpdoc and IDEs.
$wgServer
Config variable stub for the Server setting, for use by phpdoc and IDEs.
$wgPropagateErrors
Config variable stub for the PropagateErrors setting, for use by phpdoc and IDEs.
$wgSharedSchema
Config variable stub for the SharedSchema setting, for use by phpdoc and IDEs.
$wgPasswordSender
Config variable stub for the PasswordSender setting, for use by phpdoc and IDEs.
$wgSharedPrefix
Config variable stub for the SharedPrefix setting, for use by phpdoc and IDEs.
const MW_CONFIG_CALLBACK
Definition install.php:19
Represents an OpenTelemetry span, i.e.
Helper trait for implementations \DAO.