Skip to content

Add AMPS support entry #14250

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
Sep 22, 2020
Merged

Add AMPS support entry #14250

merged 1 commit into from
Sep 22, 2020

Conversation

vasilvestre
Copy link
Contributor

Fix #14249

messenger.rst Outdated

Starting from Symfony 5.2, the AMQP transport can handle AMQPS DSN (e.g. ``amqps://``).
Be aware that using it without using CA certificate can throw an exception.
An alternative is to use AMQP DSN and to specify which port you want to use (e.g. ``amqp://localhost?port=5671``).
Copy link
Member

Choose a reason for hiding this comment

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

We often avoid introducing new information in versionadded directives. When the version reached end-of-life, we simply remove all old versionadded directives - it would be sad to loose usefull information.

So I would suggest you say this information somewhere below in the text. I think the best is to add a real example to the .env example on line 866, e.g.:

# .env
MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages

# or use the AMQPS protocol
MESSENGER_TRANSPORT_DSN=amqps://...

You can then also show a working DNS string (so people see how to configure the required CA certificate). After the example, you can then add a short versionadded directive:

.. versionadded:: 5.2

    Support for the AMQPS DSN was introduced in Symfony 5.2.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wdyt about the changes ?

.. versionadded:: 5.2

Starting from Symfony 5.2, the AMQP transport can handle AMQPS DSN (e.g. ``amqps://``).
Be aware that using it without using CA certificate can throw an exception.
Copy link
Member

Choose a reason for hiding this comment

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

This sentence isn't really helpful. How do I set this CA certificate? We should either not mention it (and rely on Symfony to throw an exception that will educate the user on what to do next) or fully show how to use amps.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've added an entry about it, wdyt ?

@greg0ire
Copy link
Contributor

greg0ire commented Sep 17, 2020

Please associate your email address with your Github account, or change the
email in your commits to an address already associated with it. If you do not
want to expose your personal email address, you may use
vasilvestre @users.noreply.github.com, that way we can still reach you through Github.
Additionally, you will get credit for this contribution on your Github profile.

@vasilvestre
Copy link
Contributor Author

vasilvestre commented Sep 18, 2020

Please associate your email address with your Github account, or change the
email in your commits to an address already associated with it. If you do not
want to expose your personal email address, you may use
vasilvestre @users.noreply.github.com, that way we can still reach you through Github.
Additionally, you will get credit for this contribution on your Github profile.

Should be fine :) I've used my firstname and lastname and my pro email. This should be enough no ?

@greg0ire
Copy link
Contributor

Should be fine :) I've used my firstname and lastname and my pro email. This should be enough no ?

It doesn't seem to work. Did you link your pro email to your account?

@vasilvestre
Copy link
Contributor Author

Should be fine :) I've used my firstname and lastname and my pro email. This should be enough no ?

It doesn't seem to work. Did you link your pro email to your account?

Fixed (finally!) I had a private email before I had a pro address. Thank you!

@javiereguiluz
Copy link
Member

Thank you Valentin. This is now merged!

Note that we did some minor rewords and simplifications while merging.

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.

[Amqp] Add amqps support
10 participants