Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
extensions.typo3.org
extensions.typo3.org
Commits
3982f2ec
Commit
3982f2ec
authored
Jul 21, 2017
by
Jens Jacobsen
Browse files
Deprecate usage of Tx_Amqp_Service_ProducerService
parent
81bdc8f9
Pipeline
#1733
passed with stages
in 2 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
html/typo3conf/ext/ter/class.tx_ter_api.php
View file @
3982f2ec
...
...
@@ -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'
);
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment