[-FEATURE] Remove restricted class prefixes
Sometimes the core enforces classes to be prefixed with special names like 'tx_' or 'user_', especially if they are loaded as user functions. This constraint is in the core for a long time, but was already weakened by for example the extbase code, and was only required at some arbitrary points. The constraint itself does not make much sense, and is now fully removed with this patch. As an additional advantage, this patch eases the transition to namespaced class names. Notes: - Remove configuration Setting '[sys][additionalAllowedClassPrefixes]' - Update t3lib_registry to accept every namespace at least 2 chars long - Adapt tests - Remove and deprecate calls to t3lib_div::hasValidClassPrefix Change-Id: I0ba4fd41beb5f05bf87a14d735bb83922d62b247 Resolves: #39164 Releases: 6.0 Reviewed-on: http://review.typo3.org/12976 Reviewed-by: Daniel Lorenz Tested-by: Daniel Lorenz Reviewed-by: Christian Kuhn Tested-by: Christian Kuhn
Showing
- t3lib/class.t3lib_div.php 10 additions, 54 deletionst3lib/class.t3lib_div.php
- t3lib/class.t3lib_extmgm.php 1 addition, 1 deletiont3lib/class.t3lib_extmgm.php
- t3lib/class.t3lib_registry.php 14 additions, 10 deletionst3lib/class.t3lib_registry.php
- t3lib/class.t3lib_tceforms.php 17 additions, 23 deletionst3lib/class.t3lib_tceforms.php
- t3lib/class.t3lib_tcemain.php 6 additions, 10 deletionst3lib/class.t3lib_tcemain.php
- t3lib/matchcondition/class.t3lib_matchcondition_abstract.php 0 additions, 5 deletionst3lib/matchcondition/class.t3lib_matchcondition_abstract.php
- t3lib/stddb/DefaultConfiguration.php 0 additions, 1 deletiont3lib/stddb/DefaultConfiguration.php
- tests/Unit/t3lib/class.t3lib_divTest.php 5 additions, 106 deletionstests/Unit/t3lib/class.t3lib_divTest.php
- tests/Unit/t3lib/class.t3lib_registryTest.php 13 additions, 4 deletionstests/Unit/t3lib/class.t3lib_registryTest.php
- typo3/sysext/cms/tslib/class.tslib_content.php 0 additions, 4 deletionstypo3/sysext/cms/tslib/class.tslib_content.php
- typo3/sysext/setup/mod/index.php 5 additions, 9 deletionstypo3/sysext/setup/mod/index.php
Please register or sign in to comment