Commit 3982f2ec authored by Jens Jacobsen's avatar Jens Jacobsen

Deprecate usage of Tx_Amqp_Service_ProducerService

parent 81bdc8f9
Pipeline #1733 passed with stages
in 2 minutes and 51 seconds
......@@ -204,19 +204,10 @@ class tx_ter_api
*
* @param $extensionInfoData
* @return void
* @deprecated The method used to notifiy via Tx_Amqp_Service_ProducerService, which is no longer available
*/
protected static function notifyExtensionVersionUpload($extensionInfoData)
{
$objectManager = GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\ObjectManager::class);
/** @var Tx_Amqp_Service_ProducerService $producerService */
$producerService = $objectManager->get('Tx_Amqp_Service_ProducerService');
$data = [
'extensionKey' => $extensionInfoData->extensionKey,
'version' => $extensionInfoData->version
];
$producerService->sendToExchange($data, 'org.typo3.ter.version.upload');
}
/**
......@@ -387,18 +378,10 @@ class tx_ter_api
*
* @param $registerExtensionKeyData
* @return mixed
* @deprecated The method used to notifiy via Tx_Amqp_Service_ProducerService, which is no longer available
*/
protected function notifyExtensionKeyRegistration($registerExtensionKeyData)
{
$objectManager = GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\ObjectManager::class);
/** @var Tx_Amqp_Service_ProducerService $producerService */
$producerService = $objectManager->get('Tx_Amqp_Service_ProducerService');
$data = [
'extensionKey' => $registerExtensionKeyData->extensionKey,
];
return $producerService->sendToExchange($data, 'org.typo3.ter.key.register');
}
/**
......@@ -532,18 +515,10 @@ class tx_ter_api
*
* @param $extensionKey
* @return mixed
* @deprecated The method used to notifiy via Tx_Amqp_Service_ProducerService, which is no longer available
*/
protected function notifyExtensionKeyDelete($extensionKey)
{
$objectManager = GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\ObjectManager::class);
/** @var Tx_Amqp_Service_ProducerService $producerService */
$producerService = $objectManager->get('Tx_Amqp_Service_ProducerService');
$data = [
'extensionKey' => $extensionKey,
];
$producerService->sendToExchange($data, 'org.typo3.ter.key.delete');
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment