Changes

Jump to navigation Jump to search
Replaced content with "{{Deprecated}}"
# {{@todo}} Expand on the Readme# {{@todo}} List the extensions,# {{@todo}} Pull content from the [[Features]] page into the [[Private:QualityBox/features]] page# {{@todo}} Consult [[mw:Manual:composer.json best practices]] and convert Html2Wiki to use Composer == Extensions ==Extensions are installed using [[Composer]]<ref>As of [[mw:MediaWiki 1.22]], you can use [http://getcomposer.org/ Composer] to install MediaWiki extensions which include a <code>composer.json</code> manifest and are published on the [https://packagist.org/ Packagist] package repository.</ref><ref>https://gerrit.wikimedia.org/r/#/c/93120/</ref>. There are some intractable problems associated with using Composer in a wikifarm setup <ref>see [[mw:Composer/For extensions]] Normally, you install the extension with Composer (which installs the files and handles the dependencies; plus creates an autoloader). Then you activate the extension with the <code>wfLoadExtension</code> in <code>LocalSettings.php</code>. The problem with a wikifarm is how to conditionally activate the extension. The best approach is to conditionally load an extra LocalSettings.php for your farm instances. But you won't be able to '''deactivate''' an extension (e.g. to substitute ExtB for ExtA or disable ExtA altogether.) Historical discussion at [https://phabricator.wikimedia.org/T467#1343633 RfC: Extension management with Composer] and https://github.com/composer/composer/issues/4109</ref>. If a QualityBox customer requires an extension that conflicts with the extensions featured in QualityBox; or if a QualityBox customer requires that a feature be disabled (aka removed), then that will require a '''CustomBox'''. Since both MediaWiki core and Extensions rely on Composer, the [https://github.com/wikimedia/composer-merge-plugin Composer merge plugin] is responsible for merging multiple composer.json files at Composer runtime. Performance is enhanced by loading multiple extensions with the new Extension Registration format (v. using the deprecated entry point 'require' format) and using APC <ref>[[mw:Manual:Extension registration]] Extensions that are loaded together with wfLoadExtension'''s''' (with plural -s) will be cached together.</ref> == See Also ==[[Private:QualityBox/features]] {{ReferencesDeprecated}}
4,558

edits

Navigation menu