I was curious if it was possible for plugins to have a similar event lifecycle as modules, as in… pre/post ModuleLoad & pre/postModuleUnload intercept points, but for plugins?
After testing a few things, it seems plugins don’t get registered until they’re called or injected.
I’m working on a small project where, while I could use Modules, it seems way overkill and too many files when just 1 cfc would do.
That is correct, Plugins are not created until they are needed. If you need a lifecycle, that’s what modules are for. Alternatively, you can just map the Plugin as a model and set it to eagerInit().