[TYPO3-english] How to modify clearing of configuration cache in TYPO3 6.0

Jigal van Hemert jigal.van.hemert at typo3.org
Tue Jan 8 15:00:23 CET 2013


Hi,

On 8-1-2013 10:41, Armin Rüdiger Vieweg wrote:
> Currently I'm using the xclass
> ['XCLASS']['t3lib/class.t3lib_tcemain.php'] and overwrite the method
> removeCacheFiles(). But this xclass seems not to exist anymore.
>
> So, I have no clue how to "hook" into the new
> \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::removeCacheFiles()
> method.

As Wouter already wrote, the XCLASS setting has been removed and you can 
just use a single line to declare an override for any class.

Example:

// XCLASS
$GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/cms/layout/db_layout.php'] 
= t3lib_extMgm::extPath('myextension') . 'Classes/class.ux_db_layout.php';
// Namespace XCLASS
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Backend\\Controller\\PageLayoutController'] 
= array('className' => 'ux_SC_db_layout');

In Classes/class.ux_db_layout.php is the class ux_SC_db_layout. The 
extra line made the "old" XCLASS compatible with the 6.0 core.

-- 
Jigal van Hemert
TYPO3 Core Team member

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-english mailing list