Manual:Extension registration

Extension registration refers to the new system of loading extensions that was introduced in MediaWiki 1.25 following a RfC.

Rather than include metadata about extensions inside PHP files that depends upon filescope, global state and load order, these are now stored in an  or   file.

Usage
Previously your LocalSettings.php would include something like:

This can be converted to:

For ideal performance, if you are loading multiple extensions/skins, you should use the plural function, as it will optimize the loading of extensions.

If you keep your extensions in a different location, you can interact with the ExtensionRegistry directly:

Migrating
A script has been written to help with migrating from PHP entry points to JSON:. If your extension supports older versions of MediaWiki, you should keep your PHP entry point until you drop support for those older versions.

Features

 * attributes
 * performance

Customizing registration

 * custom processor functionality