Issue Task Closed

#63326Avoid using $GLOBALS['TYPO3_DB'] in DataHandler

Sebastian Michaelsen 11/25/14, 16:38 updated 10/02/18, 11:47

Description

Instead of $GLOBALS[‘TYPO3_DB’] a type hinted property $this->databaseConnection should be used to gain autocompletion and better IDE inspection in this class.

Concerns: This might be a breaking change. $this->databaseConnection is set on DataHandler->start(). If some code relies on setting/modifying $GLOBALS[‘TYPO3_DB’] after DataHandler->start() and before other methods of DataHandler are invoked it might break. Please decide if this is too much of a risk.

Reviews 2