I've got a custom add-on/extension that extends the Store
module by tapping into the store_order_complete_end
hook to save details of an order to an XML file stored on the server.
I want to access this method from within another plugin. How best to achieve this? In Craft CMS I would abstract this method in my first plugin into a service that could then be called by another add-on. However, my EE is a bit rusty and not sure how best to achieve this in EE (EE2).
Thoughts appreciated.
Cole