Open daledavies opened 1 month ago
@phager-at Just need to fix the failing checks and it'll be back over to you.
All done 😃
I've added some more thoughts about general architecture, as I wasn't able to work on it while you implemented your last changes (roughly 2 weeks ago).
TL;DR:
other
) in the constructor, as it's part of the "configurable instance" feature and should be set via setter defined in the instance_configurable interface.I think I have a solution that satisfies all your feeedback so far.
rule_interface
instance_configurable
interfacerule_base
class entirelyrule_trait
trait so rule plugins don't have to implement the basics every timeNow we hopefully have the best of both worlds, interfaces for everything and rule plugin definition can still be quite simple.
Just tidying up and I'll push as a new commit so you can see the difference.
I'm not too pleased with so many getters and setters, but I guess that's a failing of PHP. Maybe one day we can use property hooks or something!
@phager-at As mentioned above, I've taken your suggestions into account and reworked things in the latest commit. Hopefully this is better, I'm certainly happier with it - thanks for your advise.
Back over to you :)
Rebased to fix conflicts now main
has been updated.
rule_checker
intorule_instances_controller
.configurable
interface toinstance_configurable
and introduces a newplugin_configurable
interface, allowing plugins to implement their own "global" settings.I'd probably recommend reviewing this commit by commit, rather than all at once.