-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #919 from UN-OCHA/develop
Deploy 17/04/24
- Loading branch information
Showing
12 changed files
with
462 additions
and
435 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/src/Plugin/QueueWorker/AmazonSesMailQueue.php b/src/Plugin/QueueWorker/AmazonSesMailQueue.php | ||
index dc410504566451d20aec939de6953e6d1a6e9be9..fdc7af32ac6634c51283fb38f0227530a1772735 100644 | ||
--- a/src/Plugin/QueueWorker/AmazonSesMailQueue.php | ||
+++ b/src/Plugin/QueueWorker/AmazonSesMailQueue.php | ||
@@ -29,7 +29,12 @@ class AmazonSesMailQueue extends QueueWorkerBase implements ContainerFactoryPlug | ||
$plugin_definition | ||
); | ||
|
||
- $instance->setHandler($container->get('amazon_ses.handler')); | ||
+ // Only set the handler if queueing is enabled to avoid an error when | ||
+ // trying to run without config. | ||
+ $enabled = \Drupal::config('amazon_ses.settings')->get('queue'); | ||
+ if ($enabled) { | ||
+ $instance->setHandler($container->get('amazon_ses.handler')); | ||
+ } | ||
|
||
return $instance; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.