[!!!][TASK] Remove legacy soft references functionality 33/48933/7
authorBenni Mack <benni@typo3.org>
Tue, 12 Jul 2016 16:24:34 +0000 (18:24 +0200)
committerBenni Mack <benni@typo3.org>
Thu, 28 Jul 2016 06:06:29 +0000 (08:06 +0200)
commit8f2eee53cb40ca2b14354d65e9547bf1c78e3364
tree4703b3bb3d804376be9faf0c567e43f2de08e154
parentb0c531e16dea27a397823a7c49ff3ce26ca9f2b3
[!!!][TASK] Remove legacy soft references functionality

The soft references based on TSconfig, TStemplate and images within
fileadmin/ are not accurate and thus useless since it's not common
anymore to reference TSconfig or TStemplate code inline inside the
DB fields, and also the data inside the softrefparser hasn't been used
anymore.

In order to refactor the SoftReference Index the old legacy code is
removed first without substitution.

The following softref keys are not evaluated anymore:
* TSconfig
* TStemplate

and can be removed from TCA.

The "image" soft reference key is not evaluating files within
fileadmin/ anymore (that are not linked as files).

The "typolink" and "typolink_tag" soft reference parsers don't evalute
links to plain files within fileadmin/ anymore.

The public property "SoftReferenceIndex::$fileAdminDir" is removed.

The following PHP methods are removed without substitution:
* SoftReferenceIndex::findRef_TStemplate()
* SoftReferenceIndex::findRef_TSconfig()
* SoftReferenceIndex::fileadminReferences()

Resolves: #77156
Releases: master
Change-Id: I0bc791a051fda06715175c2f526dddb90b8e4391
Reviewed-on: https://review.typo3.org/48933
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
12 files changed:
typo3/sysext/core/Classes/Database/SoftReferenceIndex.php
typo3/sysext/core/Classes/Migrations/TcaMigration.php
typo3/sysext/core/Configuration/DefaultConfiguration.php
typo3/sysext/core/Configuration/TCA/be_groups.php
typo3/sysext/core/Configuration/TCA/be_users.php
typo3/sysext/core/Configuration/TCA/pages.php
typo3/sysext/core/Documentation/Changelog/master/Breaking-77156-TSconfigAndTStemplateSoftReferencesFunctionalityRemoved.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Migrations/TcaMigrationTest.php
typo3/sysext/frontend/Configuration/TCA/fe_groups.php
typo3/sysext/frontend/Configuration/TCA/fe_users.php
typo3/sysext/frontend/Configuration/TCA/sys_template.php
typo3/sysext/rtehtmlarea/Classes/Hook/SoftReferenceHook.php