https://bugzilla.wikimedia.org/show_bug.cgi?id=30039
--- Comment #4 from Van de Bugger <[email protected]> 2011-09-19 19:29:39 UTC --- Sorry, did not catch. Manual:Hooks says: > Hooks allow custom code to be executed when one of many defined events (like > saving an article or a user logging in) occur. In case of ParserFunctions/Variables integration, I do not see events. In this case one extension (namely, ParserFunctions) directly uses service provided by another extension (namely, Variables). Happy-melon said: > The ParserFunctions extension should not contain references to the Variables extension in the same way that core code should not contain references to extensions. ?? Extensions use services provided by core directly. Extensions use global variables defined in core, like $wgAutoloadClasses, $wgGroupPermissions, $wgContLang, etc. In this particular case, what is "core" and what is "extension"? (1) ParserFunctions extends Variables or (2) Variables extends ParserFunctions? In the first case I do not see any issue if ParserFunctions uses services provided by Variables by using global variable $wgExtVariables. In the seconds case ParserFunctions (namely, expression parser/evaluator) can be extended with plugins to introduce new functions, operators, names... It is an interesting idea -- extensions for extensions... It is suitable for big and complex extensions like SemanticMediaWiki, but ParserFunctions is rather simple extension... Do you really want make a monster from ParserFunctions? To me it is much simpler to move Variables functionality into ParserFunctions. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
