XF 2.0 Add-on dependency management

Arty

Well-known member
I have 2 add-ons that share same code. That code can be separated from both add-ons into compact abstract package. Its not just PHP code, but also XenForo templates, event handlers and JS files, so simply moving it to one directory as library won't work. Its more like add-on depending on another add-on.

What would be best way to deal with installation and upgrades of such dependency in XenForo 2? Would it require user to install multiple add-ons or is there a mechanism that can bundle and automate installation?
 
Under no circumstance should you require users to install multiple addons unless you like answering support queries so much that you feel like you just aren’t receiving enough support queries as it is.

For templates, copy paste across to all your addons. For code, you can write Robo.li scripts that can do search & replace on code to fix namespaces and then place the files in their correct folders.


Fillip
 
Top Bottom