You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docs states that queue transport should be configured like so:
'EmailTransport' => [
'queue' => [
'className' => QueueTransport::class,
// The transport to use inside the queue job.'transport' => MailTransport::class,
'config' => [
// Configuration for MailTransport.
]
]
],
Wheras in fact the whole queue array is passed to the transport constructor:
I'd like to fix that the example from docs would work while keeping the existing behavior. For example pass the config array if the key exists and fallback to the whole array thing otherwise.
Docs states that queue transport should be configured like so:
Wheras in fact the whole
queue
array is passed to the transport constructor:queue/src/Mailer/Transport/QueueTransport.php
Lines 87 to 89 in c073121
I'd like to fix that the example from docs would work while keeping the existing behavior. For example pass the
config
array if the key exists and fallback to the whole array thing otherwise.Also it would be great if you could pass just the name of an already configurated transport, for example:
I can provide a PR if that sounds reasonable.
The text was updated successfully, but these errors were encountered: