From 176d16d9b95d4c2adb169ca0f7a0b16de224018c Mon Sep 17 00:00:00 2001 From: Greg Ziborov Date: Tue, 1 Feb 2022 13:26:18 +1030 Subject: [PATCH] Deprecated Symfony RegistryInterface service replaced with ManagerRegistry --- Async/AbstractRetryableProcessor.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Async/AbstractRetryableProcessor.php b/Async/AbstractRetryableProcessor.php index d9f76f7..e1bc3b9 100644 --- a/Async/AbstractRetryableProcessor.php +++ b/Async/AbstractRetryableProcessor.php @@ -21,7 +21,7 @@ use Oro\Component\MessageQueue\Util\JSON; use Psr\Log\LoggerInterface; use Oro\Component\MessageQueue\Client\Config; -use Symfony\Bridge\Doctrine\RegistryInterface; +use Symfony\Bridge\Doctrine\ManagerRegistry; abstract class AbstractRetryableProcessor implements MessageProcessorInterface, RetryableProcessorInterface { @@ -34,16 +34,16 @@ abstract class AbstractRetryableProcessor implements MessageProcessorInterface, protected $logger; /** - * @var RegistryInterface + * @var ManagerRegistry */ protected $registry; /** * AbstractRetryableProcessor constructor. * @param LoggerInterface $logger - * @param RegistryInterface $registry + * @param ManagerRegistry $registry */ - public function __construct(LoggerInterface $logger, RegistryInterface $registry) + public function __construct(LoggerInterface $logger, ManagerRegistry $registry) { $this->logger = $logger; $this->registry = $registry; @@ -93,7 +93,7 @@ protected function handleFailure(MessageInterface $message, RetryableException $ $exception = $exception->getPrevious(); } - $em = $this->registry->getEntityManager(); + $em = $this->registry->getManager(); $failedJob = new FailedJob( $message->getProperty(Config::PARAMETER_TOPIC_NAME), JSON::decode($message->getBody()),