[TYPO3-core] RFC #13148: need logDeprecated function for included files

Sebastian Gebhard sebastian.gebhard at gmail.com
Wed Jan 6 08:44:04 CET 2010


Thank you Felix.

Sounds reasonable. What would you think about expanding the documentation of the new function a bit 
and explain how to use it?

Beside that +1 by reading

Am 05.01.2010 13:12, schrieb Felix Oertel:
> Hi Sebastian,
>
> nice to read you here ;)
>
> Sebastian Gebhard schrieb:
>> could you provide a usage example?
>
> I'd love to. ;-)
>
> Let's take t3lib/class.t3lib_page.php for an example. The file is
> supposed to be named class.t3lib_pageSelector.php for this is the name
> of the contained class.
> We move class.t3lib_page.php to class.t3lib_pageSelector.php and create
> a new class.t3lib_page.php for compatibility reasons.
> The file contains the following:
>
> t3lib_div::logDeprecatedRequire();
> require_once(PATH_t3lib . 'class.t3lib_pageSelector.php');
>
> So the require of the old file is logged and the new file is included to
> make things work.
>
> We could think about using the docheader to extract the log-message like
> t3lib_div::logDeprecatedFunction() does but I don't know how to
> comfortably get the docheader without using reflection.
>
> Any questions? ;)
>
> Regards,
>
> Felix Oertel
> typo3felix.de



More information about the TYPO3-team-core mailing list