Hey,

> Sounds reasonable to me --> https://gerrit.wikimedia.org/r/124130

\o/ Thanks. This will save extension maintainers quite some hassle.

> Couldn't you just create a MyExtensionNameSpecialPage class like below
and extend that for your special pages instead of regular SpecialPage

You sure can, and I have done such things many times in the past. This
however still does cost effort and is in the end not so nice, esp if it
needs to happen for all extensions that care about it. And in case they
derive from different SpecialPage subclasses, they each have to do it
multiple times.

This all hints as a basic design guideline: only bind to frameworks where
you have to, and avoid putting any domain and application logic in
derivatives of their base classes. That's an entirely general guideline,
yet one often disregarded in MediaWiki extensions.

Cheers

--
Jeroen De Dauw - http://www.bn2vs.com
Software craftsmanship advocate
Evil software architect at Wikimedia Germany
~=[,,_,,]:3
_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to