Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[Messenger] Document stamps in HandleTrait::handle#20851

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
javiereguiluz merged 1 commit intosymfony:7.3fromFan2Shrek:i-20842
Apr 7, 2025

Conversation

Fan2Shrek
Copy link
Contributor

Spomky reacted with thumbs up emoji
@carsonbotcarsonbot added this to the7.3 milestoneApr 2, 2025
@Spomky
Copy link
Contributor

Spomky commentedApr 2, 2025
edited
Loading

Hi@Fan2Shrek,

This looks good to me.
I would have added the example showed insymfony/symfony#42124 (comment) as well (it is more relevant to me compared to theDoctrineFlushStamp stamp)

Copy link
Contributor

@OskarStarkOskarStark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

After my comment

messenger.rst Outdated
@@ -2512,6 +2512,15 @@ wherever you need a query bus behavior instead of the ``MessageBusInterface``::
}
}

You also can also specify stamps when handling a message. For example, you can
Copy link
Member

@javiereguiluzjaviereguiluzApr 2, 2025
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

What doesspecify mean here? Is it about adding new stamps to the message? What if you add a stamp of the same type that some existing stamp: is it appended or overwritten? Thanks!

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Good points! I committed some refinements. Does it look good to you?

@carsonbotcarsonbot changed the titleDocument stamps in HandleTrait::handle[Messenger] Document stamps in HandleTrait::handleApr 2, 2025
Copy link
Contributor

@SpomkySpomky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Fine for me👌.
Many thanks.

@javiereguiluzjaviereguiluz merged commit59836aa intosymfony:7.3Apr 7, 2025
3 checks passed
@javiereguiluz
Copy link
Member

Merged! Thanks Pierre.

@@ -2512,6 +2512,20 @@ wherever you need a query bus behavior instead of the ``MessageBusInterface``::
}
}

You also can also add stamps when handling a message. For example, you can
add an ``DoctrineFlushStamp`` to flush the entity manager after handling the message::
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This stamp doss not exists in the symfony core maybe we should alternative or describe it as MyCustomStamp.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Oops, I'll take a look at it later today 😅

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks Alexander! I wasn't aware of this.

We updated the example directly in7f9f20f but if you think this needs further changes, please create a Pull Request. Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Looks good@javiereguiluz 👍

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

@javiereguiluzjaviereguiluzjaviereguiluz left review comments

@alexander-schranzalexander-schranzalexander-schranz left review comments

@OskarStarkOskarStarkOskarStark approved these changes

@SpomkySpomkySpomky approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
7.3
Development

Successfully merging this pull request may close these issues.

[Messenger] Add$stamps parameter toHandleTrait::handle
6 participants
@Fan2Shrek@Spomky@javiereguiluz@OskarStark@alexander-schranz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp