diff --git a/modules/salesforce_push/src/Plugin/SalesforcePushQueueProcessor/Rest.php b/modules/salesforce_push/src/Plugin/SalesforcePushQueueProcessor/Rest.php index 706476f6455c18d237a20cf6345f2a39b3badf91..5743a0e77cebc8a3af37cfe429aa5b4b9f057f6d 100644 --- a/modules/salesforce_push/src/Plugin/SalesforcePushQueueProcessor/Rest.php +++ b/modules/salesforce_push/src/Plugin/SalesforcePushQueueProcessor/Rest.php @@ -2,8 +2,9 @@ namespace Drupal\salesforce_push\Plugin\SalesforcePushQueueProcessor; -use Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher; -use Drupal\Core\Entity\EntityTypeManager; +use Drupal\Component\EventDispatcher\ContainerAwareEventDispatcherInterface; +use Symfony\Component\EventDispatcher\EventDispatcherInterface; +use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\Core\Plugin\PluginBase; use Drupal\Core\Queue\SuspendQueueException; use Drupal\salesforce\EntityNotFoundException; @@ -44,7 +45,7 @@ class Rest extends PluginBase implements PushQueueProcessorInterface { protected $event_dispatcher; protected $etm; - public function __construct(array $configuration, $plugin_id, array $plugin_definition, PushQueue $queue, RestClientInterface $client, EntityTypeManager $etm, ContainerAwareEventDispatcher $event_dispatcher) { + public function __construct(array $configuration, $plugin_id, array $plugin_definition, PushQueue $queue, RestClientInterface $client, EntityTypeManagerInterface $etm, EventDispatcherInterface $event_dispatcher) { $this->queue = $queue; $this->client = $client; $this->etm = $etm; diff --git a/modules/salesforce_push/src/PushQueue.php b/modules/salesforce_push/src/PushQueue.php index efcde2cd46d3d73a13a482f9e78ee43bf6704ec7..d499788880da1393dbe80f925aac842aedc3afe4 100644 --- a/modules/salesforce_push/src/PushQueue.php +++ b/modules/salesforce_push/src/PushQueue.php @@ -9,7 +9,7 @@ use Drupal\Core\Entity\EntityManagerInterface; use Drupal\Core\Queue\DatabaseQueue; use Drupal\Core\Queue\RequeueException; use Drupal\Core\Queue\SuspendQueueException; -use Drupal\Core\State\State; +use Drupal\Core\State\StateInterface; use Drupal\salesforce\EntityNotFoundException; use Drupal\salesforce\Event\SalesforceErrorEvent; use Drupal\salesforce\Event\SalesforceNoticeEvent; @@ -63,7 +63,7 @@ class PushQueue extends DatabaseQueue { * @param \Drupal\Core\Database\Connection $connection * The Connection object containing the key-value tables. */ - public function __construct(Connection $connection, State $state, PushQueueProcessorPluginManager $queue_manager, EntityManagerInterface $entity_manager, EventDispatcherInterface $event_dispatcher) { + public function __construct(Connection $connection, StateInterface $state, PushQueueProcessorPluginManager $queue_manager, EntityManagerInterface $entity_manager, EventDispatcherInterface $event_dispatcher) { $this->connection = $connection; $this->state = $state; $this->queueManager = $queue_manager; @@ -303,7 +303,7 @@ class PushQueue extends DatabaseQueue { /** * Given a salesforce mapping, process all its push queue entries. * - * @param SalesforceMapping $mapping + * @param SalesforceMapping $mapping * * @return int * The number of items procesed, or -1 if there was any error, And also