Skip to content

Add configuration support for default content_type and delivery_mode in Producers #659

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 3 commits into from
Oct 27, 2021
Merged

Add configuration support for default content_type and delivery_mode in Producers #659

merged 3 commits into from
Oct 27, 2021

Conversation

nathanjrobertson
Copy link
Contributor

Similar to my last pull request, it is handy to be able to declare defaults for content_type and delivery_mode in the Producer. This PR adds these as configurables, and maintains backward compatibility, with the default values being the existing default values.

With this PR, the caller has the option of either setting these programmatically (existing functionality) or by configuration. Programmatic setting overrides configuration.

@mihaileu mihaileu requested a review from ramunasd October 22, 2021 12:13
@nathanjrobertson
Copy link
Contributor Author

@mihaileu @ramunasd Ready for review again - added the constant as requested.

@mihaileu mihaileu merged commit 4bfb678 into php-amqplib:master Oct 27, 2021
@nathanjrobertson nathanjrobertson deleted the default_producer_variables branch October 27, 2021 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants