-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] Move mailer configuration to php #37204
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
[FrameworkBundle] Move mailer configuration to php #37204
Conversation
|
||
->set('mailer.transport_factory.smtp', EsmtpTransportFactory::class) | ||
->parent('mailer.transport_factory.abstract') | ||
->tag('mailer.transport_factory', ['priority' => -100]) |
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.
should i set string or int value for the priority attribute?
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.
int is fine
->set('mailer.transports', Transports::class) | ||
->factory([service('mailer.transport_factory'), 'fromStrings']) | ||
->args([ | ||
[], //transports |
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.
abstract_arg please as an empty array is not valid
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.
✅
]) | ||
|
||
->set('mailer.transport_factory', Transport::class) | ||
->args([tagged_iterator('mailer.transport_factory')]) |
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.
please use multi-line args consistently everywhere
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.
✅
]) | ||
->tag('data_collector', [ | ||
'id' => 'mailer', | ||
'template' => '@WebProfiler/Collector/mailer.html.twig', |
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.
please change the order of template and id to be consistent with the other data_collector tags
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.
✅
Fixup done |
3c70354
to
eb88f88
Compare
Thank you @instabledesign. |
Move mailer configuration file to php