Hi,
Personally, what I usually do on my extensions when I need to share complex logic between multiple actions is to create another class to hold all the complex logic.
Then on the actions in the main extension class just instanciate my helper class once and call the necessary action from it. That way you are the one that are controlling who/when the classes are created without having to know how the platform works internally.
Regards,
João Rosado
Personally, what I usually do on my extensions when I need to share complex logic between multiple actions is to create another class to hold all the complex logic.
Then on the actions in the main extension class just instanciate my helper class once and call the necessary action from it. That way you are the one that are controlling who/when the classes are created without having to know how the platform works internally.
Regards,
João Rosado