https://bugzilla.wikimedia.org/show_bug.cgi?id=23985

--- Comment #4 from Brion Vibber <[email protected]> 2011-06-07 22:55:39 UTC 
---
What we may want here is a system for aliases or virtual modules.

It's fairly common in Linux app packaging systems for instance to have a notion
that multiple packages can provide some particular service. sendmail, postfix,
exim etc will all claim to offer 'mail-transport-agent' for instance, so any
other package that needs _some_ mail agent but doesn't care which can simply
declare its dependency on that, and whichever is available (or
chosen/prioritized) gets actually used.

If we consider SimpleSearch's module and mwsuggest to both provide, say,
'mediawiki.search-suggest', but SimpleSearch's takes priority, then poof! We
only need to ask for one, and we get the awesomest one.

One simple way to implement this might be to just create a dependency-only
module and override it:

$wgResourceModules['mediawiki.search-suggest'] = array(
  'dependencies' => array( 'mediawiki.legacy.mwsuggest' ),
);

... then when setting up the extension ...

$wgResourceModules['mediawiki.search-suggest'] = array(
  'dependencies' => array( 'ext.vector.simplesearch' ),
);

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to