I'd appreciate some feedback on this enhancement to the MediaWiki autoloader:
https://bugzilla.wikimedia.org/show_bug.cgi?id=53835 https://gerrit.wikimedia.org/r/59804
The PSR-4 recommendation has not been ratified, but I think it's the most convenient and rational namespace-based autoloading proposal, and I doubt it will be modified before adoption.
Putting this logic into core allows extension authors a standardized way of namespacing their classes, and also has the potential to deprecate or at least greatly reduce the redundant wgAutoloadClasses lists.
-Adam
Sounds reasonable to me... Who wants to try a dependent change that tweaks one of the namespace-using extensions to use it and see how it works? :D
-- brion
On Wed, Sep 18, 2013 at 11:37 AM, Adam Wight awight@wikimedia.org wrote:
I'd appreciate some feedback on this enhancement to the MediaWiki autoloader:
https://bugzilla.wikimedia.org/show_bug.cgi?id=53835 https://gerrit.wikimedia.org/r/59804
The PSR-4 recommendation has not been ratified, but I think it's the most convenient and rational namespace-based autoloading proposal, and I doubt it will be modified before adoption.
Putting this logic into core allows extension authors a standardized way of namespacing their classes, and also has the potential to deprecate or at least greatly reduce the redundant wgAutoloadClasses lists.
-Adam _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org