Thank you for this useful library. It's really great. I have a small feature request. Could you add a validateCronExpression() or isValidCronExpression() static function to CronExpression?
The reason I need this is that there will be situations where schedules are created programatically, and I want to make sure an invalid schedule isn't saved for later usage, causing errors on every run.
Right now, I'm doing this to accomplish what I need:
It's a very small change as far as the code I write, but I feel like my current solution is a bit ugly and hack-ish since the underlying code might change in how invalid expressions are handled.
Thank you for this useful library. It's really great. I have a small feature request. Could you add a
validateCronExpression()
orisValidCronExpression()
static function toCronExpression
?The reason I need this is that there will be situations where schedules are created programatically, and I want to make sure an invalid schedule isn't saved for later usage, causing errors on every run.
Right now, I'm doing this to accomplish what I need:
It would be nice if I could do this:
It's a very small change as far as the code I write, but I feel like my current solution is a bit ugly and hack-ish since the underlying code might change in how invalid expressions are handled.