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
Explicitly mention AWS region #653
Conversation
thePanz
commented
Oct 7, 2019
Q | A |
---|---|
License | MIT |
Doc issue/PR | symfony/symfony#33827 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request passes validation.
@fabpot @Nyholm should we actually build this recipe with separate env variables for the different parts of the DSN, and then combining it in a URL DSN through interpolation ? This is the best way to cause confusion regarding the necessary escaping (as the interpolation cannot apply URL escaping at the time of using the non-URL env variable) |
@fabpot I am unsure about the |
@thePanz |
@stof : that's clear. I just wanted to check how the region should be passed to the Factory via the DNS. I found my answer here: https://github.com/symfony/amazon-mailer/blob/4.4/Transport/SesTransportFactory.php#L29 Btw I agree to not use a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request passes validation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request passes validation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request passes validation.
@thePanz I think that other than requiring it in recipe it should not be set as default null in Transport constructor otherwise users can continue ignore it. |
Why is it better not to use IMHO I think is better have an explicit variable empty or with a default value like this:
So in sample above if |
@fabianoroberto using other variables interpolated in a URL is a bad idea, because the interpolation will not apply any escaping (it cannot) and so the separate variables will need to contain URL-escaped value (in which case they become unusable on their own). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merge now