Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Messenger] Add a way to redispatch a message #49734

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Mar 19, 2023

Q A
Branch? 6.3
Bug fix? no
New feature? yes
Deprecations? no
Tickets n/a
License MIT
Doc PR -

This was part of the Scheduler PR, but was removed as it was controversial.
Instead of having it by default in Scheduler, I've made it generic in Messenger.

If one wants to use it with Scheduler, they can use this:

new RedispatchMessage($msg, 'async');

@fabpot fabpot merged commit a08ccfc into symfony:6.3 Mar 20, 2023
@fabpot fabpot deleted the messenger-redispatch-handler branch March 20, 2023 10:20
@valtzu
Copy link
Contributor

valtzu commented Jun 16, 2023

I really like this feature, however one question:

If one wants to use it with Scheduler, they can

So why is RedispatchMessage marked as @internal then? @fabpot 🤔

As it suggests I should not use that in my app code.

@fabpot
Copy link
Member Author

fabpot commented Jun 16, 2023

@valtzu I think you're right, it shouldn't be. Would you like to submit a PR on 6.3 to remove the @internal annotation?

fabpot added a commit that referenced this pull request Jun 20, 2023
…ltzu)

This PR was merged into the 6.3 branch.

Discussion
----------

[Messenger] Don't mark `RedispatchMessage` as internal

| Q             | A
| ------------- | ---
| Branch?       | 6.3
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| License       | MIT

As discussed in #49734 (comment), `RedispatchMessage` is meant to be used in your project, hence it shouldn't be marked as internal (which makes IDEs suggest not to use it).

Commits
-------

1209b81 Don't mark RedispatchMessage as internal
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.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.