TickTackk
Well-known member
XenForo 2.2 bought loads of changes to the core which required updating parameters a method uses, changing the class hint in methods and even more changes. This change broke many add-ons in a way that add-on developer will have either drop support for XF 2.1 and lower or using
Being able to set class extension criteria to only apply when the X, Y and Z add-ons are installed and those add-ons min/max version match will greatly help in maintaining compatibility between older and future second-point XF/add-ons releases.
The reason why I'm asking to support setting multiple add-ons is so something like this could work for Covers by TH:
(writing suggestions is hard)
class_alias
like here. Using class_alias
works but is very hacky and things don't quite look "clean".Being able to set class extension criteria to only apply when the X, Y and Z add-ons are installed and those add-ons min/max version match will greatly help in maintaining compatibility between older and future second-point XF/add-ons releases.
The reason why I'm asking to support setting multiple add-ons is so something like this could work for Covers by TH:
- Do a version bump
- For the class extension
XF\Pub\Controller\Thread
to only apply when the version compare is less than2020010
for add-onXF
- Change the extension class to
TH\Covers\XF22\Pub\Controller\Thread
- Do a version bump
- For the class extension
XF\Pub\Controller\Thread
to only apply when the version compare is less than1000471
for add-onTH\Covers
- Change the class extension to
TickTackk\THCoversExtension\XF21\Pub\Controller\Thread
- Add a new class extension for
XF\Pub\Controller\Thread
with class extension set toTickTackk\THCoversExtension\XF22\Pub\Controller\Thread
to only apply when version compare is equal to or greater than2020010
for add-onXF
- Move the parts of action from the original extension class into a trait
- Update both the original class extension and the newly added extension to make use of the trait added in previous state
(writing suggestions is hard)
Upvote
10