Skip to content
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

[Messenger] Allow passing a string instead of an array in TransportNamesStamp #49270

Merged

Conversation

alexandre-daubois
Copy link
Contributor

Q A
Branch? 6.3
Bug fix? no
New feature? yes
Deprecations? no
Tickets NA
License MIT
Doc PR Todo

This PR aims to improve a bit the DX when using TransportNamesStamp by allowing passing a string as the only argument of the stamp when only one transport is provided by the developer.

Also, I fixed the property name to match getter's name. I did not changed constructor argument's name as I'm afraid it would be a BC if it is used with named arguments 🤔

@carsonbot carsonbot added Status: Needs Review DX DX = Developer eXperience (anything that improves the experience of using Symfony) Feature Messenger labels Feb 6, 2023
@carsonbot carsonbot added this to the 6.3 milestone Feb 6, 2023
@carsonbot carsonbot changed the title [DX][Messenger] Allow passing a string instead of an array in TransportNamesStamp [Messenger] Allow passing a string instead of an array in TransportNamesStamp Feb 6, 2023
Copy link
Member

@chalasr chalasr left a comment

Choose a reason for hiding this comment

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

Worth a changelog entry I think

@alexandre-daubois
Copy link
Contributor Author

You're right, entry added!

@nicolas-grekas
Copy link
Member

Thank you @alexandre-daubois.

@nicolas-grekas nicolas-grekas merged commit 49b6ab8 into symfony:6.3 Feb 10, 2023
@alexandre-daubois alexandre-daubois deleted the dx-transports-name-stamp branch February 10, 2023 13:17
@fabpot fabpot mentioned this pull request May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX DX = Developer eXperience (anything that improves the experience of using Symfony) Feature Messenger Status: Reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants