Deprecation: #102821 - ExtensionManagementUtility::addPItoST43()

See forge#102821

Description

The method \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43() has been marked as deprecated in TYPO3 v13 and will be removed with TYPO3 v14.

Impact

Using the ExtensionManagementUtility::addPItoST43() will raise a deprecation level log entry and a fatal error in TYPO3 v14.

Affected installations

Extensions using ExtensionManagementUtility::addPItoST43() are affected: Using ExtensionManagementUtility::addPItoST43() triggers a deprecation level log message. The extension scanner will find usages of ExtensionManagementUtility::addPItoST43() as strong match.

Migration

// Before:
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43('my_extkey', '', '_pi1');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
    'tx_myextkey',
    'setup',
    'plugin.tx_myextkey_pi1.userFunc = MY\MyExtkey\Plugins\Plugin->main'
);

// After:
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
    'my_extkey',
    'setup',
    'plugin.tx_myextkey_pi1 = USER_INT
     plugin.tx_myextkey_pi1.userFunc = MY\MyExtkey\Plugins\Plugin->main'
);
Copied!