File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,9 @@ public function sanitizeJobConfig(array $job)
124
124
$ job ['schedule ' ] = !empty ($ job ['schedule ' ]) ? $ job ['schedule ' ] : '' ;
125
125
$ job ['instance ' ] = !empty ($ job ['instance ' ]) ? $ job ['instance ' ] : '' ;
126
126
$ job ['method ' ] = !empty ($ job ['method ' ]) ? $ job ['method ' ] : '' ;
127
+ if (isset ($ job ['config_path ' ])) {
128
+ $ job ['schedule ' ] = $ this ->parseCronConfigPath ($ job );
129
+ }
127
130
return $ job ;
128
131
}
129
132
@@ -148,4 +151,9 @@ public function validateFrequency(?string $frequency): void
148
151
$ schedule ->matchCronExpression ($ expression , 0 );
149
152
}
150
153
}
154
+
155
+ public function parseCronConfigPath (array $ job ): string
156
+ {
157
+ return $ this ->scopeConfig ->getValue ($ job ['config_path ' ]) ?? '' ;
158
+ }
151
159
}
You can’t perform that action at this time.
0 commit comments