Exemplo n.º 1
0
 /**
  * @param MessageReceivedInterface $message
  * @param array $options
  */
 public function deleteMessage(MessageReceivedInterface $message, array $options = [])
 {
     $this->logger->info(sprintf("Delete message called for id '%s' with : %s", $message->getId(), json_encode($options)));
 }
Exemplo n.º 2
0
 /**
  * @param MessageReceivedInterface $message
  * @param array $options
  * @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-sqs-2012-11-05.html#deletemessage
  */
 public function deleteMessage(MessageReceivedInterface $message, array $options = [])
 {
     $params = $this->mergeParams([self::RECEIPT_HANDLE => $message->getReceptionRequestId()], $options);
     $this->awsSqsClient->deleteMessage($params);
 }