This code is meant to be executed within the MediaWiki application context. No standalone usage is intended.
3.0.x
-> MediaWiki 1.432.0.x
-> MediaWiki 1.392.0.x
-> MediaWiki 1.35
Require this component in the composer.json
of your extension:
{
"require": {
"mwstake/mediawiki-component-utils": "~3"
}
}
Since 2.0 explicit initialization is required. This can be achived by
- either adding
"callback": "mwsInitComponents"
to yourextension.json
/skin.json
- or calling
mwsInitComponents();
within you extensions/skins customcallback
method
See also mwstake/mediawiki-componentloader
.