-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Mailer][DX][RFC] Rename mailer bridge transport classes #32609
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
Conversation
The renaming looks like a good idea to me 👍 |
Please update the CHANGELOG file. |
5db5558
to
b9dd600
Compare
Branch rebased, PR is ready for review. 1st commit about renaming classes in bridges |
Having shorter namespaces is also a goal. I would revert the creation of the |
But in this case we got mess inside There are 2 PRs with new transports (file, in-memory) that contribute to same |
But File and InMemory transports do not exist (and will probably never exist). |
Haven't had time to have a look at them yet, but I don't think they will be merged. |
b9dd600
to
fe403c2
Compare
Creation of the |
f1cf336
to
eda4f01
Compare
Thank you @Koc. |
…es (Koc) This PR was squashed before being merged into the 4.4 branch (closes #32609). Discussion ---------- [Mailer][DX][RFC] Rename mailer bridge transport classes | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yno | New feature? | no | BC breaks? | yes | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - During working on #31946 I realized how painful to work with multiple classes which has same name. [Nice article](https://www.tomasvotruba.cz/blog/2019/05/02/alias-as-a-code-smell/) by @TomasVotruba with explanation of problems with such approach. ~Built on top of #32608 , so only [2nd commit](bbf7e99) is actual.~ Also I've changed namespaces to make bridge structure much simpler and be linear. All classes located on same level now. See how [bridge](https://github.com/symfony/symfony/tree/bbf7e99e89c70fab372929827ae509b41280ce40/src/Symfony/Component/Mailer/Bridge/Amazon) looks like now. Now in RFC state to get approve for such king of changes and update all other bridges. Commits ------- eda4f01 [Mailer][DX][RFC] Rename mailer bridge transport classes
During working on #31946 I realized how painful to work with multiple classes which has same name. Nice article by @TomasVotruba with explanation of problems with such approach.
Built on top of #32608 , so only 2nd commit is actual.Also I've changed namespaces to make bridge structure much simpler and be linear. All classes located on same level now. See how bridge looks like now.
Now in RFC state to get approve for such king of changes and update all other bridges.