- Issue created by @cafuego
- π¦πΊAustralia cafuego
I have a patch for a work-around, but I'm not sure if this isn't a bad idea :-)
class AmazonSesMailQueue extends QueueWorkerBase implements ContainerFactoryPluginInterface { use HandlerTrait; /** * {@inheritdoc} */ public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) { $instance = new static( $configuration, $plugin_id, $plugin_definition ); // 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; }
- Merge request !14#3417090: Do not try to create a queue instance when not configured for queueing. β (Open) created by cafuego
- last update
4 months ago CI error - Status changed to Needs review
9 days ago 1:43am 20 June 2024 - last update
9 days ago 16 pass