Skip to content

Conversation

alexandre-daubois
Copy link
Member

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
Member Author

You're right, entry added!

@nicolas-grekas nicolas-grekas force-pushed the dx-transports-name-stamp branch from 591f1f4 to ff86922 Compare February 10, 2023 13:14
@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.

5 participants