Skip to content

Commit cbc293b

Browse files
authored
Merge pull request #137 from cakephp/robertpustulka-patch-1
Update documentation with new transport config example.
2 parents 9a91c98 + a9a31aa commit cbc293b

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

docs/en/index.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -299,14 +299,15 @@ queue jobs, you can use the ``QueueTransport``. In your application's
299299

300300
return [
301301
// ... other configuration
302-
'EmailTransport' => [
302+
'EmailTransport' => [
303+
'default' => [
304+
'className' => MailTransport::class,
305+
// Configuration for MailTransport.
306+
]
303307
'queue' => [
304308
'className' => QueueTransport::class,
305-
// The transport to use inside the queue job.
306-
'transport' => MailTransport::class,
307-
'config' => [
308-
// Configuration for MailTransport.
309-
]
309+
// The transport name to use inside the queue job.
310+
'transport' => 'default',
310311
]
311312
],
312313
'Email' => [
@@ -320,7 +321,7 @@ queue jobs, you can use the ``QueueTransport``. In your application's
320321

321322
With this configuration in place, any time you send an email with the ``default``
322323
email profile CakePHP will generate a queue message. Once that queue message is
323-
processed the ``MailTransport`` will be used to deliver the email messages.
324+
processed the default ``MailTransport`` will be used to deliver the email messages.
324325

325326
Run the worker
326327
==============

0 commit comments

Comments
 (0)