Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
phpstan-bootstrap.php File Reference

Variables

 $IP = $GLOBALS['IP']
 This is a modified copy of an old version of [core]/tests/phpunit/bootstrap.php which includes only the code required for autoloading.
 
 $GLOBALS ['wgAutoloadClasses'] = []
 
 $GLOBALS ['wgBaseDirectory'] = MW_INSTALL_PATH
 
 $GLOBALS ['wgExtensionDirectory'] = "$IP/extensions"
 
 $GLOBALS ['wgStyleDirectory'] = "$IP/skins"
 
 $directoryToJsonMap
 
 $extensionProcessor = new ExtensionProcessor()
 
foreach( $directoryToJsonMap as $directory=> $jsonFilePattern) $autoload = $extensionProcessor->getExtractedAutoloadInfo( true )
 

Variable Documentation

◆ $autoload

foreach ($directoryToJsonMap as $directory=> $jsonFilePattern) $autoload = $extensionProcessor->getExtractedAutoloadInfo( true )

◆ $directoryToJsonMap

$directoryToJsonMap
Initial value:
= [
$GLOBALS['wgExtensionDirectory'] => 'extension*.json',
$GLOBALS['wgStyleDirectory'] => 'skin*.json',
]
$GLOBALS['wgAutoloadClasses']
Definition phpstan-bootstrap.php:11

◆ $extensionProcessor

$extensionProcessor = new ExtensionProcessor()

◆ $GLOBALS [1/4]

$GLOBALS[ 'wgAutoloadClasses'] = []

◆ $GLOBALS [2/4]

$GLOBALS[ 'wgBaseDirectory'] = MW_INSTALL_PATH

◆ $GLOBALS [3/4]

$GLOBALS[ 'wgExtensionDirectory'] = "$IP/extensions"

◆ $GLOBALS [4/4]

$GLOBALS[ 'wgStyleDirectory'] = "$IP/skins"

◆ $IP

$IP = $GLOBALS['IP']

This is a modified copy of an old version of [core]/tests/phpunit/bootstrap.php which includes only the code required for autoloading.