Replaced t3lib_div with \TYPO3\CMS\Core\Utility\GeneralUtility