Skip to content

Wire the clock argument of PostgreSqlNotifyOnIdleListener#2204

Merged
greg0ire merged 1 commit intodoctrine:3.3.xfrom
nicolas-grekas:clock-msg
Mar 4, 2026
Merged

Wire the clock argument of PostgreSqlNotifyOnIdleListener#2204
greg0ire merged 1 commit intodoctrine:3.3.xfrom
nicolas-grekas:clock-msg

Conversation

@nicolas-grekas
Copy link
Copy Markdown
Member

@ostrolucky ostrolucky added this to the 3.3.0 milestone Mar 3, 2026
@greg0ire
Copy link
Copy Markdown
Member

greg0ire commented Mar 3, 2026

The failures look related

@nicolas-grekas
Copy link
Copy Markdown
Member Author

Failure is OK.
I went with ignoreOnInvalid, which will never happen because clock is a dep of messenger.
Yet because of the way FrameworkBundle interacts with the CI, the clock service is removed in this case. But that's only a CI side-effect (having fwb in require and messenger+clock in require-dev)

@nicolas-grekas
Copy link
Copy Markdown
Member Author

I made the clock argument nullable in symfony/symfony#63566

symfony-splitter pushed a commit to symfony/messenger that referenced this pull request Mar 4, 2026
…leListener (nicolas-grekas)

This PR was merged into the 8.1 branch.

Discussion
----------

[Messenger] Make $clock nullable in PostgreSqlNotifyOnIdleListener

| Q             | A
| ------------- | ---
| Branch?       | 8.1
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | -
| License       | MIT

This makes conditional wiring easier, as spotted in doctrine/DoctrineBundle#2204

Commits
-------

52e6cd3f1de [Messenger] Make $clock nullable in PostgreSqlNotifyOnIdleListener
nicolas-grekas added a commit to symfony/symfony that referenced this pull request Mar 4, 2026
…leListener (nicolas-grekas)

This PR was merged into the 8.1 branch.

Discussion
----------

[Messenger] Make $clock nullable in PostgreSqlNotifyOnIdleListener

| Q             | A
| ------------- | ---
| Branch?       | 8.1
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | -
| License       | MIT

This makes conditional wiring easier, as spotted in doctrine/DoctrineBundle#2204

Commits
-------

52e6cd3 [Messenger] Make $clock nullable in PostgreSqlNotifyOnIdleListener
@greg0ire greg0ire merged commit 92075a9 into doctrine:3.3.x Mar 4, 2026
13 checks passed
@greg0ire
Copy link
Copy Markdown
Member

greg0ire commented Mar 4, 2026

Thanks @nicolas-grekas !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants