MediaWiki  1.33.0
ResourceLoaderStartUpModule.php
Go to the documentation of this file.
1 <?php
24 
43  protected $targets = [ 'desktop', 'mobile' ];
44 
49  private function getConfigSettings( $context ) {
50  $conf = $this->getConfig();
51 
52  // We can't use Title::newMainPage() if 'mainpage' is in
53  // $wgForceUIMsgAsContentMsg because that will try to use the session
54  // user's language and we have no session user. This does the
55  // equivalent but falling back to our ResourceLoaderContext language
56  // instead.
57  $mainPage = Title::newFromText( $context->msg( 'mainpage' )->inContentLanguage()->text() );
58  if ( !$mainPage ) {
59  $mainPage = Title::newFromText( 'Main Page' );
60  }
61 
67  $contLang = MediaWikiServices::getInstance()->getContentLanguage();
68  $namespaceIds = $contLang->getNamespaceIds();
69  $caseSensitiveNamespaces = [];
70  foreach ( MWNamespace::getCanonicalNamespaces() as $index => $name ) {
71  $namespaceIds[$contLang->lc( $name )] = $index;
72  if ( !MWNamespace::isCapitalized( $index ) ) {
73  $caseSensitiveNamespaces[] = $index;
74  }
75  }
76 
77  $illegalFileChars = $conf->get( 'IllegalFileChars' );
78 
79  // Build list of variables
80  $skin = $context->getSkin();
81  $vars = [
82  'wgLoadScript' => wfScript( 'load' ),
83  'debug' => $context->getDebug(),
84  'skin' => $skin,
85  'stylepath' => $conf->get( 'StylePath' ),
86  'wgUrlProtocols' => wfUrlProtocols(),
87  'wgArticlePath' => $conf->get( 'ArticlePath' ),
88  'wgScriptPath' => $conf->get( 'ScriptPath' ),
89  'wgScript' => wfScript(),
90  'wgSearchType' => $conf->get( 'SearchType' ),
91  'wgVariantArticlePath' => $conf->get( 'VariantArticlePath' ),
92  // Force object to avoid "empty" associative array from
93  // becoming [] instead of {} in JS (T36604)
94  'wgActionPaths' => (object)$conf->get( 'ActionPaths' ),
95  'wgServer' => $conf->get( 'Server' ),
96  'wgServerName' => $conf->get( 'ServerName' ),
97  'wgUserLanguage' => $context->getLanguage(),
98  'wgContentLanguage' => $contLang->getCode(),
99  'wgTranslateNumerals' => $conf->get( 'TranslateNumerals' ),
100  'wgVersion' => $conf->get( 'Version' ),
101  'wgEnableAPI' => true, // Deprecated since MW 1.32
102  'wgEnableWriteAPI' => true, // Deprecated since MW 1.32
103  'wgMainPageTitle' => $mainPage->getPrefixedText(),
104  'wgFormattedNamespaces' => $contLang->getFormattedNamespaces(),
105  'wgNamespaceIds' => $namespaceIds,
106  'wgContentNamespaces' => MWNamespace::getContentNamespaces(),
107  'wgSiteName' => $conf->get( 'Sitename' ),
108  'wgDBname' => $conf->get( 'DBname' ),
109  'wgExtraSignatureNamespaces' => $conf->get( 'ExtraSignatureNamespaces' ),
110  'wgExtensionAssetsPath' => $conf->get( 'ExtensionAssetsPath' ),
111  // MediaWiki sets cookies to have this prefix by default
112  'wgCookiePrefix' => $conf->get( 'CookiePrefix' ),
113  'wgCookieDomain' => $conf->get( 'CookieDomain' ),
114  'wgCookiePath' => $conf->get( 'CookiePath' ),
115  'wgCookieExpiration' => $conf->get( 'CookieExpiration' ),
116  'wgCaseSensitiveNamespaces' => $caseSensitiveNamespaces,
117  'wgLegalTitleChars' => Title::convertByteClassToUnicodeClass( Title::legalChars() ),
118  'wgIllegalFileChars' => Title::convertByteClassToUnicodeClass( $illegalFileChars ),
119  'wgResourceLoaderStorageVersion' => $conf->get( 'ResourceLoaderStorageVersion' ),
120  'wgResourceLoaderStorageEnabled' => $conf->get( 'ResourceLoaderStorageEnabled' ),
121  'wgForeignUploadTargets' => $conf->get( 'ForeignUploadTargets' ),
122  'wgEnableUploads' => $conf->get( 'EnableUploads' ),
123  'wgCommentByteLimit' => null,
124  'wgCommentCodePointLimit' => CommentStore::COMMENT_CHARACTER_LIMIT,
125  ];
126 
127  Hooks::run( 'ResourceLoaderGetConfigVars', [ &$vars, $skin ] );
128 
129  return $vars;
130  }
131 
139  protected static function getImplicitDependencies( array $registryData, $moduleName ) {
140  static $dependencyCache = [];
141 
142  // The list of implicit dependencies won't be altered, so we can
143  // cache them without having to worry.
144  if ( !isset( $dependencyCache[$moduleName] ) ) {
145  if ( !isset( $registryData[$moduleName] ) ) {
146  // Dependencies may not exist
147  $dependencyCache[$moduleName] = [];
148  } else {
149  $data = $registryData[$moduleName];
150  $dependencyCache[$moduleName] = $data['dependencies'];
151 
152  foreach ( $data['dependencies'] as $dependency ) {
153  // Recursively get the dependencies of the dependencies
154  $dependencyCache[$moduleName] = array_merge(
155  $dependencyCache[$moduleName],
156  self::getImplicitDependencies( $registryData, $dependency )
157  );
158  }
159  }
160  }
161 
162  return $dependencyCache[$moduleName];
163  }
164 
183  public static function compileUnresolvedDependencies( array &$registryData ) {
184  foreach ( $registryData as $name => &$data ) {
185  $dependencies = $data['dependencies'];
186  foreach ( $data['dependencies'] as $dependency ) {
187  $implicitDependencies = self::getImplicitDependencies( $registryData, $dependency );
188  $dependencies = array_diff( $dependencies, $implicitDependencies );
189  }
190  // Rebuild keys
191  $data['dependencies'] = array_values( $dependencies );
192  }
193  }
194 
202  $resourceLoader = $context->getResourceLoader();
203  // Future developers: Use WebRequest::getRawVal() instead getVal().
204  // The getVal() method performs slow Language+UTF logic. (f303bb9360)
205  $target = $context->getRequest()->getRawVal( 'target', 'desktop' );
206  $safemode = $context->getRequest()->getRawVal( 'safemode' ) === '1';
207  // Bypass target filter if this request is Special:JavaScriptTest.
208  // To prevent misuse in production, this is only allowed if testing is enabled server-side.
209  $byPassTargetFilter = $this->getConfig()->get( 'EnableJavaScriptTest' ) && $target === 'test';
210 
211  $out = '';
212  $states = [];
213  $registryData = [];
214  $moduleNames = $resourceLoader->getModuleNames();
215 
216  // Preload with a batch so that the below calls to getVersionHash() for each module
217  // don't require on-demand loading of more information.
218  try {
219  $resourceLoader->preloadModuleInfo( $moduleNames, $context );
220  } catch ( Exception $e ) {
221  // Don't fail the request (T152266)
222  // Also print the error in the main output
223  $resourceLoader->outputErrorAndLog( $e,
224  'Preloading module info from startup failed: {exception}',
225  [ 'exception' => $e ]
226  );
227  }
228 
229  // Get registry data
230  foreach ( $moduleNames as $name ) {
231  $module = $resourceLoader->getModule( $name );
232  $moduleTargets = $module->getTargets();
233  if (
234  ( !$byPassTargetFilter && !in_array( $target, $moduleTargets ) )
235  || ( $safemode && $module->getOrigin() > ResourceLoaderModule::ORIGIN_CORE_INDIVIDUAL )
236  ) {
237  continue;
238  }
239 
240  if ( $module->isRaw() ) {
241  // Don't register "raw" modules (like 'startup') client-side because depending on them
242  // is illegal anyway and would only lead to them being loaded a second time,
243  // causing any state to be lost.
244 
245  // ATTENTION: Because of the line below, this is not going to cause infinite recursion.
246  // Think carefully before making changes to this code!
247  // The below code is going to call ResourceLoaderModule::getVersionHash() for every module.
248  // For StartUpModule (this module) the hash is computed based on the manifest content,
249  // which is the very thing we are computing right here. As such, this must skip iterating
250  // over 'startup' itself.
251  continue;
252  }
253 
254  try {
255  $versionHash = $module->getVersionHash( $context );
256  } catch ( Exception $e ) {
257  // Don't fail the request (T152266)
258  // Also print the error in the main output
259  $resourceLoader->outputErrorAndLog( $e,
260  'Calculating version for "{module}" failed: {exception}',
261  [
262  'module' => $name,
263  'exception' => $e,
264  ]
265  );
266  $versionHash = '';
267  $states[$name] = 'error';
268  }
269 
270  if ( $versionHash !== '' && strlen( $versionHash ) !== 7 ) {
271  $context->getLogger()->warning(
272  "Module '{module}' produced an invalid version hash: '{version}'.",
273  [
274  'module' => $name,
275  'version' => $versionHash,
276  ]
277  );
278  // Module implementation either broken or deviated from ResourceLoader::makeHash
279  // Asserted by tests/phpunit/structure/ResourcesTest.
280  $versionHash = ResourceLoader::makeHash( $versionHash );
281  }
282 
283  $skipFunction = $module->getSkipFunction();
284  if ( $skipFunction !== null && !ResourceLoader::inDebugMode() ) {
285  $skipFunction = ResourceLoader::filter( 'minify-js', $skipFunction );
286  }
287 
288  $registryData[$name] = [
289  'version' => $versionHash,
290  'dependencies' => $module->getDependencies( $context ),
291  'group' => $module->getGroup(),
292  'source' => $module->getSource(),
293  'skip' => $skipFunction,
294  ];
295  }
296 
297  self::compileUnresolvedDependencies( $registryData );
298 
299  // Register sources
300  $out .= ResourceLoader::makeLoaderSourcesScript( $resourceLoader->getSources() );
301 
302  // Figure out the different call signatures for mw.loader.register
303  $registrations = [];
304  foreach ( $registryData as $name => $data ) {
305  // Call mw.loader.register(name, version, dependencies, group, source, skip)
306  $registrations[] = [
307  $name,
308  $data['version'],
309  $data['dependencies'],
310  $data['group'],
311  // Swap default (local) for null
312  $data['source'] === 'local' ? null : $data['source'],
313  $data['skip']
314  ];
315  }
316 
317  // Register modules
318  $out .= "\n" . ResourceLoader::makeLoaderRegisterScript( $registrations );
319 
320  if ( $states ) {
321  $out .= "\n" . ResourceLoader::makeLoaderStateScript( $states );
322  }
323 
324  return $out;
325  }
326 
330  public function isRaw() {
331  return true;
332  }
333 
343  public static function getStartupModules() {
344  wfDeprecated( __METHOD__, '1.32' );
345  return [];
346  }
347 
352  public static function getLegacyModules() {
353  wfDeprecated( __METHOD__, '1.32' );
354  return [];
355  }
356 
362  public function getBaseModulesInternal() {
363  return $this->getBaseModules();
364  }
365 
371  private function getBaseModules() {
373 
374  $baseModules = [ 'jquery', 'mediawiki.base' ];
376  $baseModules[] = 'mediawiki.legacy.wikibits';
377  }
378 
379  return $baseModules;
380  }
381 
387  global $IP;
388  $conf = $this->getConfig();
389 
390  if ( $context->getOnly() !== 'scripts' ) {
391  return '/* Requires only=script */';
392  }
393 
394  $startupCode = file_get_contents( "$IP/resources/src/startup/startup.js" );
395 
396  // The files read here MUST be kept in sync with maintenance/jsduck/eg-iframe.html,
397  // and MUST be considered by 'fileHashes' in StartUpModule::getDefinitionSummary().
398  $mwLoaderCode = file_get_contents( "$IP/resources/src/startup/mediawiki.js" ) .
399  file_get_contents( "$IP/resources/src/startup/mediawiki.requestIdleCallback.js" );
400  if ( $context->getDebug() ) {
401  $mwLoaderCode .= file_get_contents( "$IP/resources/src/startup/mediawiki.log.js" );
402  }
403  if ( $conf->get( 'ResourceLoaderEnableJSProfiler' ) ) {
404  $mwLoaderCode .= file_get_contents( "$IP/resources/src/startup/profiler.js" );
405  }
406 
407  // Perform replacements for mediawiki.js
408  $mwLoaderPairs = [
409  '$VARS.baseModules' => ResourceLoader::encodeJsonForScript( $this->getBaseModules() ),
410  '$VARS.maxQueryLength' => ResourceLoader::encodeJsonForScript(
411  $conf->get( 'ResourceLoaderMaxQueryLength' )
412  ),
413  ];
414  $profilerStubs = [
415  '$CODE.profileExecuteStart();' => 'mw.loader.profiler.onExecuteStart( module );',
416  '$CODE.profileExecuteEnd();' => 'mw.loader.profiler.onExecuteEnd( module );',
417  '$CODE.profileScriptStart();' => 'mw.loader.profiler.onScriptStart( module );',
418  '$CODE.profileScriptEnd();' => 'mw.loader.profiler.onScriptEnd( module );',
419  ];
420  if ( $conf->get( 'ResourceLoaderEnableJSProfiler' ) ) {
421  // When profiling is enabled, insert the calls.
422  $mwLoaderPairs += $profilerStubs;
423  } else {
424  // When disabled (by default), insert nothing.
425  $mwLoaderPairs += array_fill_keys( array_keys( $profilerStubs ), '' );
426  }
427  $mwLoaderCode = strtr( $mwLoaderCode, $mwLoaderPairs );
428 
429  // Perform string replacements for startup.js
430  $pairs = [
431  '$VARS.wgLegacyJavaScriptGlobals' => ResourceLoader::encodeJsonForScript(
432  $conf->get( 'LegacyJavaScriptGlobals' )
433  ),
434  '$VARS.configuration' => ResourceLoader::encodeJsonForScript(
435  $this->getConfigSettings( $context )
436  ),
437  // Raw JavaScript code (not JSON)
438  '$CODE.registrations();' => trim( $this->getModuleRegistrations( $context ) ),
439  '$CODE.defineLoader();' => $mwLoaderCode,
440  ];
441  $startupCode = strtr( $startupCode, $pairs );
442 
443  return $startupCode;
444  }
445 
449  public function supportsURLLoading() {
450  return false;
451  }
452 
456  public function enableModuleContentVersion() {
457  // Enabling this means that ResourceLoader::getVersionHash will simply call getScript()
458  // and hash it to determine the version (as used by E-Tag HTTP response header).
459  return true;
460  }
461 
465  public function getGroup() {
466  return 'startup';
467  }
468 }
ResourceLoaderStartUpModule\$targets
$targets
Definition: ResourceLoaderStartUpModule.php:43
ResourceLoaderContext
Object passed around to modules which contains information about the state of a specific loader reque...
Definition: ResourceLoaderContext.php:32
Title\newFromText
static newFromText( $text, $defaultNamespace=NS_MAIN)
Create a new Title from text, such as what one would find in a link.
Definition: Title.php:306
$wgIncludeLegacyJavaScript
$wgIncludeLegacyJavaScript
Whether to ensure the mediawiki.legacy library is loaded before other modules.
Definition: DefaultSettings.php:3712
$context
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on and they can depend only on the ResourceLoaderContext $context
Definition: hooks.txt:2636
ResourceLoaderStartUpModule\getModuleRegistrations
getModuleRegistrations(ResourceLoaderContext $context)
Get registration code for all modules.
Definition: ResourceLoaderStartUpModule.php:201
ResourceLoaderModule\$versionHash
$versionHash
Definition: ResourceLoaderModule.php:77
ResourceLoaderStartUpModule\getStartupModules
static getStartupModules()
Internal modules used by ResourceLoader that cannot be depended on.
Definition: ResourceLoaderStartUpModule.php:343
$out
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that When $user is not it can be in the form of< username >< more info > e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output $out
Definition: hooks.txt:780
ResourceLoaderStartUpModule\getBaseModulesInternal
getBaseModulesInternal()
Definition: ResourceLoaderStartUpModule.php:362
$resourceLoader
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on and they can depend only on the ResourceLoaderContext such as when responding to a resource loader request or generating HTML output & $resourceLoader
Definition: hooks.txt:2636
ResourceLoaderContext\getOnly
getOnly()
Definition: ResourceLoaderContext.php:257
MWNamespace\getContentNamespaces
static getContentNamespaces()
Get a list of all namespace indices which are considered to contain content.
Definition: MWNamespace.php:375
Title\convertByteClassToUnicodeClass
static convertByteClassToUnicodeClass( $byteClass)
Utility method for converting a character sequence from bytes to Unicode.
Definition: Title.php:683
php
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
Definition: injection.txt:35
ResourceLoaderStartUpModule\getImplicitDependencies
static getImplicitDependencies(array $registryData, $moduleName)
Recursively get all explicit and implicit dependencies for to the given module.
Definition: ResourceLoaderStartUpModule.php:139
ResourceLoaderStartUpModule\getLegacyModules
static getLegacyModules()
Definition: ResourceLoaderStartUpModule.php:352
$data
$data
Utility to generate mapping file used in mw.Title (phpCharToUpper.json)
Definition: generatePhpCharToUpperMappings.php:13
ResourceLoaderStartUpModule\supportsURLLoading
supportsURLLoading()
Definition: ResourceLoaderStartUpModule.php:449
wfDeprecated
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
Definition: GlobalFunctions.php:1078
wfScript
wfScript( $script='index')
Get the path to a specified script file, respecting file extensions; this is a wrapper around $wgScri...
Definition: GlobalFunctions.php:2714
$IP
$IP
Definition: update.php:3
ResourceLoaderStartUpModule\isRaw
isRaw()
Definition: ResourceLoaderStartUpModule.php:330
use
as see the revision history and available at free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
Definition: MIT-LICENSE.txt:10
$vars
static configuration should be added through ResourceLoaderGetConfigVars instead & $vars
Definition: hooks.txt:2220
array
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))
ResourceLoaderStartUpModule\getScript
getScript(ResourceLoaderContext $context)
Definition: ResourceLoaderStartUpModule.php:386
null
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that When $user is not null
Definition: hooks.txt:780
wfUrlProtocols
wfUrlProtocols( $includeProtocolRelative=true)
Returns a regular expression of url protocols.
Definition: GlobalFunctions.php:743
$e
div flags Integer display flags(NO_ACTION_LINK, NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging $e
Definition: hooks.txt:2162
ResourceLoaderStartUpModule\getGroup
getGroup()
Definition: ResourceLoaderStartUpModule.php:465
ResourceLoaderStartUpModule
Module for ResourceLoader initialization.
Definition: ResourceLoaderStartUpModule.php:42
ResourceLoaderModule\$name
$name
Definition: ResourceLoaderModule.php:69
ResourceLoaderStartUpModule\getBaseModules
getBaseModules()
Base modules implicitly available to all modules.
Definition: ResourceLoaderStartUpModule.php:371
ResourceLoaderModule\ORIGIN_CORE_INDIVIDUAL
const ORIGIN_CORE_INDIVIDUAL
Definition: ResourceLoaderModule.php:51
CommentStore\COMMENT_CHARACTER_LIMIT
const COMMENT_CHARACTER_LIMIT
Maximum length of a comment in UTF-8 characters.
Definition: CommentStore.php:37
ResourceLoaderModule
Abstraction for ResourceLoader modules, with name registration and maxage functionality.
Definition: ResourceLoaderModule.php:35
as
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
Definition: distributors.txt:9
MWNamespace\getCanonicalNamespaces
static getCanonicalNamespaces( $rebuild=false)
Returns array of all defined namespaces with their canonical (English) names.
Definition: MWNamespace.php:231
MWNamespace\isCapitalized
static isCapitalized( $index)
Is the namespace first-letter capitalized?
Definition: MWNamespace.php:419
$skin
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned $skin
Definition: hooks.txt:1985
ResourceLoaderStartUpModule\enableModuleContentVersion
enableModuleContentVersion()
Definition: ResourceLoaderStartUpModule.php:456
ResourceLoaderStartUpModule\getConfigSettings
getConfigSettings( $context)
Definition: ResourceLoaderStartUpModule.php:49
Title\legalChars
static legalChars()
Get a regex character class describing the legal characters in a link.
Definition: Title.php:669
object
globals will be eliminated from MediaWiki replaced by an application object which would be passed to constructors Whether that would be an convenient solution remains to be but certainly PHP makes such object oriented programming models easier than they were in previous versions For the time being MediaWiki programmers will have to work in an environment with some global context At the time of globals were initialised on startup by MediaWiki of these were configuration which are documented in DefaultSettings php There is no comprehensive documentation for the remaining however some of the most important ones are listed below They are typically initialised either in index php or in Setup php $wgTitle Title object created from the request URL $wgOut OutputPage object for HTTP response $wgUser User object for the user associated with the current request $wgLang Language object selected by user preferences $wgContLang Language object associated with the wiki being viewed $wgParser Parser object Parser extensions register their hooks here $wgRequest WebRequest object
Definition: globals.txt:25
MediaWikiServices
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency MediaWikiServices
Definition: injection.txt:23
Hooks\run
static run( $event, array $args=[], $deprecatedVersion=null)
Call hook functions defined in Hooks::register and $wgHooks.
Definition: Hooks.php:200
ResourceLoaderStartUpModule\compileUnresolvedDependencies
static compileUnresolvedDependencies(array &$registryData)
Optimize the dependency tree in $this->modules.
Definition: ResourceLoaderStartUpModule.php:183
ResourceLoaderModule\getConfig
getConfig()
Definition: ResourceLoaderModule.php:196