Skip to content

Commit

Permalink
[TASK] Connect breaking and feature rst for replaced functionality
Browse files Browse the repository at this point in the history
For TYPO3 12.0, a couple of functionality was replaced.
For example hooks were replaced by new PSR-14 Events.

To support extension authors on upgrading, the removed
hooks / registrations are now always connected to the
corresponding feature in the extension scanner.

Resolves: #97471
Releases: main
Change-Id: I9d7725703cb5af7a12d8182bd5782b8726239abc
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74390
Tested-by: Nikita Hovratov <nikita.h@live.de>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: Oliver Bartsch <bo@cedev.de>
Reviewed-by: Nikita Hovratov <nikita.h@live.de>
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
  • Loading branch information
o-ba committed Apr 25, 2022
1 parent 8985107 commit cf47aed
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Registration of the Event in your extensions' :file:`Services.yaml`:

.. code-block:: yaml
MyVendor\MyPackage\Backend\MyEventListener:
MyVendor\MyPackage\Backend\ModifyLinkExplanationEventListener:
tags:
- name: event.listener
identifier: 'my-package/backend/modify-link-explanation'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ The corresponding event listener class:

.. code-block:: php
use TYPO3\CMS\Backend\Form\Event\ModifyImageManipulationPreviewUrlEvent
use TYPO3\CMS\Backend\Form\Event\ModifyImageManipulationPreviewUrlEvent;
final class ModifyLinkExplanationEventListener
final class MyEventListener
{
public function __invoke(ModifyImageManipulationPreviewUrlEvent $event): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@
'$GLOBALS[\'TYPO3_CONF_VARS\'][\'BE\'][\'toolbarItems\']' => [
'restFiles' => [
'Breaking-96041-ToolbarItemsRegisterByTag.rst',
'Feature-96041-ImproveBackendToolbarRegistration.rst',
],
],
'$GLOBALS[\'TYPO3_CONF_VARS\'][\'SC_OPTIONS\'][\'t3lib/class.t3lib_parsehtml_proc.php\'][\'transformation\']' => [
Expand All @@ -563,6 +564,7 @@
'$GLOBALS[\'TYPO3_CONF_VARS\'][\'BE\'][\'ContextMenu\'][\'ItemProviders\']' => [
'restFiles' => [
'Breaking-96333-AutoConfigurationOfContextMenuItemProviders.rst',
'Feature-96333-ImproveContextMenuItemProviderRegistration.rst',
],
],
'$GLOBALS[\'TYPO3_CONF_VARS\'][\'SC_OPTIONS\'][\'cms/tslib/class.tslib_menu.php\'][\'filterMenuPages\']' => [
Expand Down Expand Up @@ -597,36 +599,43 @@
'$GLOBALS[\'TYPO3_CONF_VARS\'][\'FE\'][\'ContentObjects\']' => [
'restFiles' => [
'Breaking-96659-RegistrationOfCObjectsViaTYPO3_CONF_VARS.rst',
'Feature-96659-ContentObjectRegistrationViaServiceConfiguration.rst',
],
],
'$GLOBALS[\'TYPO3_CONF_VARS\'][\'SC_OPTIONS\'][\'Backend\Template\Components\ButtonBar\'][\'getButtonsHook\']' => [
'restFiles' => [
'Breaking-96806-RemovedHookForModifyingButtonBar.rst',
'Feature-96806-PSR-14EventForModifyingButtonBar.rst',
],
],
'$GLOBALS[\'TYPO3_CONF_VARS\'][\'SC_OPTIONS\'][\'tslib/class.tslib_fe.php\'][\'get_cache_timeout\']' => [
'restFiles' => [
'Breaking-96879-RemovedHookGetCacheTimeout.rst',
'Feature-96879-NewPSR-14EventModifyCacheLifetimeForPageEvent.rst',
],
],
'$GLOBALS[\'TYPO3_CONF_VARS\'][\'SC_OPTIONS\'][\'t3lib/class.t3lib_befunc.php\'][\'displayWarningMessages\']' => [
'restFiles' => [
'Breaking-96899-DisplayWarningMessagesHookRemoved.rst',
'Feature-96899-NewPSR-14EventModifyGenericBackendMessagesEvent.rst',
],
],
'$GLOBALS[\'TYPO3_CONF_VARS\'][\'EXTCONF\'][\'linkvalidator\'][\'checkLinks\']' => [
'restFiles' => [
'Breaking-96935-RegisterLinkvalidatorLinktypesViaServiceConfiguration.rst',
'Feature-96935-NewRegistrationForLinkvalidatorLinktype.rst',
],
],
'$GLOBALS[\'TYPO3_CONF_VARS\'][\'SC_OPTIONS\'][\'tslib/class.tslib_fe.php\'][\'headerNoCache\']' => [
'restFiles' => [
'Breaking-96968-HookHeaderNoCacheRemoved.rst',
'Feature-96996-PSR-14EventForModifyingRecordAccessEvaluation.rst',
],
],
'$GLOBALS[\'TYPO3_CONF_VARS\'][\'SC_OPTIONS\'][\'tslib/class.tslib_fe.php\'][\'hook_checkEnableFields\']' => [
'restFiles' => [
'Breaking-96996-HookCheckEnableFieldsRemoved.rst',
'Feature-96996-PSR-14EventForModifyingRecordAccessEvaluation.rst',
],
],
'$GLOBALS[\'TYPO3_CONF_VARS\'][\'SC_OPTIONS\'][\'TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController\'][\'newStandardTemplateView\']' => [
Expand All @@ -642,6 +651,7 @@
'$GLOBALS[\'TYPO3_CONF_VARS\'][\'SC_OPTIONS\'][\'cms/web_info/class.tx_cms_webinfo.php\'][\'drawFooterHook\']' => [
'restFiles' => [
'Breaking-97174-RemovedHookForModifyingInfoModuleFooterContent.rst',
'Feature-97174-PSR-14EventForModifyingInfoModuleContent.rst',
],
],
'$GLOBALS[\'TYPO3_CONF_VARS\'][\'SC_OPTIONS\'][\'cms\'][\'db_new_content_el\'][\'wizardItemsHook\']' => [
Expand All @@ -653,11 +663,13 @@
'$GLOBALS[\'TYPO3_CONF_VARS\'][\'SYS\'][\'formEngine\'][\'linkHandler\']' => [
'restFiles' => [
'Breaking-97187-RemovedHookForModifyingLinkExplanation.rst',
'Feature-97187-PSR-14EventForModifyingLinkExplanation.rst',
],
],
'$GLOBALS[\'TYPO3_CONF_VARS\'][\'SC_OPTIONS\'][\'ElementBrowsers\']' => [
'restFiles' => [
'Breaking-97188-RegisterElementBrowsersViaServiceConfiguration.rst',
'Feature-97188-NewRegistrationForElementBrowsers.rst',
],
],
'$GLOBALS[\'TYPO3_CONF_VARS\'][\'SC_OPTIONS\'][\'t3lib/class.t3lib_tceforms_inline.php\'][\'tceformsInlineHook\']' => [
Expand Down

0 comments on commit cf47aed

Please sign in to comment.