What is the best approach to implementing a component that responds to events?

by glenatron   Last Updated June 26, 2019 16:10 PM

I am working on a Component that will add a set of administrative functionality, which I am fairly confident in, but part of its behaviour will rely on code being triggered by events, which seems to be very much the role of a Plug-In.

What is the correct way to structure this if I want the whole lot to be easy to install and maintain? Is there a way to implement Plugin-like Observers in my Component or should I be building a separate Component and Plugin and then chaining the installers somehow? In the latter case how should I manage the code that they both share and ensure that if one is installed the other is too?

Related Questions

Updated February 20, 2016 01:04 AM

Updated September 03, 2018 06:10 AM

Updated December 11, 2016 08:04 AM

Updated February 07, 2019 07:10 AM

Updated March 08, 2018 11:10 AM