From a9a31aa77b3fdee2f49ff83ff96058c946041d77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Pustu=C5=82ka?= Date: Tue, 10 Oct 2023 10:51:37 +0200 Subject: [PATCH] Update index.rst Update documentation with new transport config example. --- docs/en/index.rst | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/en/index.rst b/docs/en/index.rst index 1552425..d47b7fe 100644 --- a/docs/en/index.rst +++ b/docs/en/index.rst @@ -299,14 +299,15 @@ queue jobs, you can use the ``QueueTransport``. In your application's return [ // ... other configuration - 'EmailTransport' => [ + 'EmailTransport' => [ + 'default' => [ + 'className' => MailTransport::class, + // Configuration for MailTransport. + ] 'queue' => [ 'className' => QueueTransport::class, - // The transport to use inside the queue job. - 'transport' => MailTransport::class, - 'config' => [ - // Configuration for MailTransport. - ] + // The transport name to use inside the queue job. + 'transport' => 'default', ] ], 'Email' => [ @@ -320,7 +321,7 @@ queue jobs, you can use the ``QueueTransport``. In your application's With this configuration in place, any time you send an email with the ``default`` email profile CakePHP will generate a queue message. Once that queue message is -processed the ``MailTransport`` will be used to deliver the email messages. +processed the default ``MailTransport`` will be used to deliver the email messages. Run the worker ==============