[TYPO3-project-4-3] [TYPO3-dev] Cleaning up t3lib-filenames
Dmitry Dulepov
dmitry.dulepov at gmail.com
Wed Sep 30 16:29:06 CEST 2009
Hi!
Martin Kutschker wrote:
>> How about rename a couple of files in a backwards compatible manner in t3lib so that the class name
>> leads directly to the file path?
+1.
>> The whole procedure may not be presented as a diff as existing files are renamed (and moved) and new
>> files are added in their stead.
>>
>> eg
>> svn mv class.t3lib_page.php class.t3lib_pageselect.php
>> mv class.t3lib_page-compat.php class.t3lib_page.php
>> svn add class.t3lib_page.php
This will erase history. This will keep all history:
svn mv https://svn.typo3.org/TYPO3v4/Core/trunk/t3lib/class.t3lib_page.php https://svn.typo3.org/TYPO3v4/Core/trunk/t3lib/class.t3lib_pageselect.php
>> The compatibility file (class.t3lib_page.php) contains only one line:
>>
>> require_once(PATH_t3lib . 'class.t3lib_pageselect.php');
>>
>> Because of the autoloader this isn't really necessary, but so the file is at least not empty.
It is not just for the autoloader. Extensions may have require_once for such files and they will be broken if this file is missing. So these files are necessary.
--
Dmitry Dulepov
Facebook: http://www.facebook.com/dmitryd
Twitter: http://twitter.com/dmitryd
Skype: liels_bugs
More information about the TYPO3-project-4-3
mailing list