Page MenuHomePhabricator

Stop using composer class autoloading for "PropertySuggester" extension
Closed, ResolvedPublic

Description

In order to load this extension as a 'regular' extension in terms of the WMF deployment system the autoloader can not be generated by composer after cloning the git repo.
The class auto loading must be provided as part of the code contained in the git repo.

This could:

  1. Be a committed version of the composer generator autoloader in a different location?
  2. Be a list generated by the mediawiki core autoloader generating maint script?
  3. Be something else

Interesting task to note is T99865: Extension registration should support using a PSR-4 autoloader but that is not done yet!

Details

Related Gerrit Patches:
mediawiki/extensions/PropertySuggester : masterUse MediaWiki autoloader

Event Timeline

Addshore created this task.Nov 8 2017, 6:41 PM

Change 390180 had a related patch set uploaded (by Legoktm; owner: Legoktm):
[mediawiki/extensions/PropertySuggester@master] Use MediaWiki autoloader

https://gerrit.wikimedia.org/r/390180

Legoktm claimed this task.Nov 9 2017, 4:38 AM
Legoktm added a subscriber: Legoktm.

Most of the commits in recent months were just maintenance so I just opted for a manually maintained class in extension.json.

Addshore closed this task as Resolved.Nov 9 2017, 8:19 AM

Change 390180 merged by jenkins-bot:
[mediawiki/extensions/PropertySuggester@master] Use MediaWiki autoloader

https://gerrit.wikimedia.org/r/390180