You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using those functions like that does not work and results in a 500 error
{"message":"Uncaught Error: Call to a member function addListener() on null","context":{"exception":{"class":"Error","message":"Call to a member function addListener() on null","code":0,"file":"/app/vendor/symfony/scheduler/Schedule.php:144"}},"channel":"php","extra":{},"severity":"CRITICAL","time":"2024-02-01T13:22:04.559+01:00"}
… passed to a Schedule (fabpot)
This PR was merged into the 6.4 branch.
Discussion
----------
[Scheduler] Throw an exception when no dispatcher has been passed to a Schedule
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Issues | Fix#53722 <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead -->
| License | MIT
Commits
-------
dfd65d6 [Scheduler] Throw an exception when no dispatcher has been passed to a Schedule
Symfony version(s) affected
6.4
Description
According to the documentation at:

https://symfony.com/doc/current/scheduler.html#a-strategic-event-handling
Using those functions like that does not work and results in a 500 error
How to reproduce
Possible Solution
Either update documentaiton, add error handling and throw our own exception or fail silently and log an error?
Additional Context
No response
The text was updated successfully, but these errors were encountered: