Commit 352ab1f
committed
minor symfony#21212 [Scheduler] Add warning about comma-separated weekdays in
This PR was merged into the 6.4 branch.
Discussion
----------
[Scheduler] Add warning about comma-separated weekdays in `PeriodicalTrigger`
### Issue
symfony/symfony#60745
Users attempt to use comma-separated weekdays like "Monday, Thursday, Saturday" with RecurringMessage::every(), which causes silent failures due to PHP's DateInterval::createFromDateString()
### Solution
Added a caution note in the PeriodicalTrigger section warning users about this limitation and providing the correct alternative using cron expressions.
### Changes
- Added .. caution:: block in the Periodical Triggers section
- Shows the problematic usage pattern to avoid
- Provides working cron expression alternative: RecurringMessage::cron('5 12 * * 1,4,6', $message)
- Includes timezone handling example: RecurringMessage::cron('5 12 * * 1,4,6', $message, 'Europe/Warsaw')
Commits
-------
6a007d4 bug #60745 [Scheduler] Add warning about comma-separated weekdays in PeriodicalTriggerPeriodicalTrigger (wazum)1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
289 | 299 | | |
290 | 300 | | |
291 | 301 | | |
| |||
0 commit comments