grav
grav copied to clipboard
[Feature request] setEnabled method for scheduler Job class
Job objects have a getEnabled()
method, but there is no setter and there's nothing in the constructor to set $enabled
, unlike some of the other private properties.
I want to be able to create Jobs programmatically that are in a disabled state.
I can easily make a PR, just thought I'd get agreement first. Maybe there was no good reason for it to be private??
I think I am coming to the understanding now that this is a reading and runtime manipulation API, not for altering job config. Am I right? Happy for this to be set closed/invalid if so.