ReStructured Text Infrastructurewiki.typo3.orgOfficial Documentation

Bug #28061

Section about deprecation not complete

Added by Rutishauser Katrin almost 2 years ago. Updated 16 days ago.

Status:Resolved Start date:2011-07-09
Priority:Should have Due date:
Assignee:Chris topher % Done:

100%

Category:-
Target version:-
Votes: 0

Description

There is no information about the necessary call to t3lib_div::logDeprecatedFunction() and where to put it (right after the beginning of the method)

History

Updated by Rutishauser Katrin almost 2 years ago

Rutishauser Katrin wrote:

There is no information about the necessary call to t3lib_div::logDeprecatedFunction() and where to put it (right after the beginning of the method)

Would be really helpful to have it there

Updated by Chris topher 16 days ago

  • Status changed from New to Resolved
  • Assignee set to Chris topher
  • % Done changed from 0 to 100

I just added this information in one of the last commits.

See http://docs.typo3.org/typo3cms/CodingGuidelinesReference/CodingBestPractices/HandlingDeprecation/Index.html:

At the beginning of the deprecated function you should add a call to GeneralUtility::logDeprecatedFunction() and provide a helpful deprecation message:

\TYPO3\CMS\Core\Utility\GeneralUtility::logDeprecatedFunction('This function is deprecated since TYPO3 6.X. Please use xyz instead by doing...');

Also available in: Atom PDF