33 'modules' =>
'startup',
45 'target' =>
'phpunit',
49 ->setMethods( [
'getDirection' ] )
51 $ctx->method(
'getDirection' )->willReturn(
$options[
'dir'] );
58 'ResourceLoaderDebug' =>
true,
61 'CacheEpoch' =>
'20140101000000',
65 'Script' =>
'/w/index.php',
66 'LoadScript' =>
'/w/load.php',
73 ResourceLoader::clearCache();
76 foreach ( self::getSettings() as $key =>
$value ) {
77 $globals[
'wg' . $key] =
$value;
145 return $this->shouldEmbed ?? parent::shouldEmbedModule(
$context );
159 foreach ( $test as $key =>
$value ) {
177 $this->config =
$config ?: MediaWikiServices::getInstance()->getMainConfig();
179 $this->
addSource(
'local', $this->config->get(
'LoadScript' ) );
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
__construct(Config $config=null, LoggerInterface $logger=null)
Register core modules and runs registration hooks.
WebRequest clone which takes values from a provided array.
This class generates message blobs for use by ResourceLoader modules.
Object passed around to modules which contains information about the state of a specific loader reque...
ResourceLoader module based on local JavaScript/CSS files.
__construct( $options=[], $test=[])
getLessVars(ResourceLoaderContext $context)
Get module-specific LESS variables, if any.
Abstraction for ResourceLoader modules, with name registration and maxage functionality.
validateScriptFile( $fileName, $contents)
Validate a given script file; if valid returns the original source.
getResourceLoaderContext( $options=[], ResourceLoader $rl=null)
shouldEmbedModule(ResourceLoaderContext $context)
Check whether this module should be embeded rather than linked.
getScript(ResourceLoaderContext $context)
Get all JS for this module for a given language and skin.
isKnownEmpty(ResourceLoaderContext $context)
Check whether this module is known to be empty.
isRaw()
Whether this module's JS expects to work without the client-side ResourceLoader module.
getMessages()
Get the messages needed for this module.
enableModuleContentVersion()
Whether to generate version hash based on module content.
getStyles(ResourceLoaderContext $context)
Get all CSS for this module for a given skin.
getType()
Get the module's load type.
__construct( $options=[])
getGroup()
Get the group this module is in.
getDependencies(ResourceLoaderContext $context=null)
Get a list of modules this module depends on.
getSource()
Get the source of this module.
getSkipFunction()
Get the skip function.
Dynamic JavaScript and CSS resource loading system.
setMessageBlobStore(MessageBlobStore $blobStore)
setLogger(LoggerInterface $logger)
addSource( $id, $loadUrl=null)
Add a foreign source of modules.
array $errors
Errors accumulated during current respond() call.
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 $request
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 & $options
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
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
script(document.cookie)%253c/script%253e</pre ></div > !! end !! test XSS is escaped(inline) !!input< source lang
Interface for configuration instances.