Wikimedia

ExtensionRegistration: Composer's autoloader should be autoloaded in extension registry (if configured)

MediaWiki's way to handle library dependencies is (mostly) composer[1], even for extensions. But extensions need to handle loading of composer's autoloader themself. Instead, in this task, the system (named extension regsitration), which loads extensions, should support to name, that the extension has an autoloader (e.g. "load_composer_autoloader"). And if set to true, Extension registration should load the autoloader in the registration process.

You'll find further information in our Phabricator task: https://phabricator.wikimedia.org/T119766

A patch to implement this should be uploaded to gerrit. A first step-to-step guide on how to use gerrit and setup your local environment can be found here: https://www.mediawiki.org/wiki/Gerrit

If you've questions about the task, setting up the environment or something similar, feel free to talk with me in IRC (#wikimedia-dev User FlorianSW).

[1] https://getcomposer.org/

Task tags

  • php
  • extensionregistration
  • composer

Students who completed this task

Victor Barbu

Task type

  • code Code
close

2015