[FEATURE] Allow XCLASSes to be defined via ext_autoload.php
authorBenjamin Mack <benni@typo3.org>
Thu, 17 Nov 2011 19:23:48 +0000 (20:23 +0100)
committerJigal van Hemert <jigal@xs4all.nl>
Mon, 16 Apr 2012 20:32:42 +0000 (22:32 +0200)
commit59328ee9aee6141a68259cc3196f06731b678277
tree8f0fc8d02c8665374af2c0be5c5397b231b6e574
parent9207e26505cd6199ec09ceb35fa21e1dfe6e8cc9
[FEATURE] Allow XCLASSes to be defined via ext_autoload.php

For XCLASSes to work currently, one needs to

a) set the according XCLASS statement in every PHP file that
   can/should be subclassed
b) use this XCLASS statement in an extensions' ext_localconf.php
   to include the subclass statement

This process is somehow unflexible, requires more code, and since
it is missing for some classes, it's also a hassle to maintain.

The attached change does the following:
1) Use the autoloader to search for classes prefixed by "ux_*"
2) Provide a backwards compatibility layer

TODO: Provide a possibility for BE admins to see which XCLASSes
are currently in use with this new method.

Change-Id: I4af4116108fecd9df0874c3e07e10b86f74d556e
Resolves: #31893
Releases: 6.0
Reviewed-on: http://review.typo3.org/6717
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
t3lib/cache/class.t3lib_cache_factory.php
t3lib/class.t3lib_autoloader.php
t3lib/class.t3lib_cache.php
t3lib/class.t3lib_div.php
t3lib/config_default.php