From fe81210de3277256030ca6afbddb594768b71ef6 Mon Sep 17 00:00:00 2001 From: Aaron Bauman <aaron@messageagency.com> Date: Thu, 3 Aug 2023 09:27:33 -0400 Subject: [PATCH] Fix definition for pull queue worker --- .../salesforce_pull/src/Plugin/QueueWorker/PullBase.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/salesforce_pull/src/Plugin/QueueWorker/PullBase.php b/modules/salesforce_pull/src/Plugin/QueueWorker/PullBase.php index 12231db3..066cf414 100644 --- a/modules/salesforce_pull/src/Plugin/QueueWorker/PullBase.php +++ b/modules/salesforce_pull/src/Plugin/QueueWorker/PullBase.php @@ -74,12 +74,13 @@ abstract class PullBase extends QueueWorkerBase implements ContainerFactoryPlugi * @throws \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ - public function __construct(EntityTypeManagerInterface $entity_type_manager, RestClientInterface $client, EventDispatcherInterface $event_dispatcher) { + public function __construct(EntityTypeManagerInterface $entity_type_manager, RestClientInterface $client, EventDispatcherInterface $event_dispatcher, array $configuration, $plugin_id, $plugin_definition) { $this->etm = $entity_type_manager; $this->client = $client; $this->eventDispatcher = $event_dispatcher; $this->mappingStorage = $this->etm->getStorage('salesforce_mapping'); $this->mappedObjectStorage = $this->etm->getStorage('salesforce_mapped_object'); + parent::__construct($configuration, $plugin_id, $plugin_definition); } /** @@ -89,7 +90,10 @@ abstract class PullBase extends QueueWorkerBase implements ContainerFactoryPlugi return new static( $container->get('entity_type.manager'), $container->get('salesforce.client'), - $container->get('event_dispatcher') + $container->get('event_dispatcher'), + $configuration, + $plugin_id, + $plugin_definition ); } -- GitLab