[-FEATURE] Remove restricted class prefixes
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 21 Jul 2012 15:23:39 +0000 (17:23 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 21 Jul 2012 19:24:55 +0000 (21:24 +0200)
commit7b5867385884ee525c0d6a35198a55df1ff87dfe
tree53afd61a32ddac2a121d36e9e3a0075a7bc3e3bf
parent1f62e40271c21f42ace7474b16175afdf571b194
[-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
t3lib/class.t3lib_div.php
t3lib/class.t3lib_extmgm.php
t3lib/class.t3lib_registry.php
t3lib/class.t3lib_tceforms.php
t3lib/class.t3lib_tcemain.php
t3lib/matchcondition/class.t3lib_matchcondition_abstract.php
t3lib/stddb/DefaultConfiguration.php
tests/Unit/t3lib/class.t3lib_divTest.php
tests/Unit/t3lib/class.t3lib_registryTest.php
typo3/sysext/cms/tslib/class.tslib_content.php
typo3/sysext/setup/mod/index.php