/**
  * Initializes the formhandler globals and the expiry timestamp
  */
 public function __construct()
 {
     $this->objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
     $this->authCodeRepository = $this->objectManager->get('Tx\\Authcode\\Domain\\Repository\\AuthCodeRepository');
     $this->authCodeRecordRepository = $this->objectManager->get('Tx\\Authcode\\Domain\\Repository\\AuthCodeRecordRepository');
     $this->formhandlerUtils = GeneralUtility::makeInstance(FormhandlerGeneralUtility::class);
     $this->globals = GeneralUtility::makeInstance(FormhandlerGlobals::class);
     $this->tsfeUser = $GLOBALS['TSFE']->fe_user;
     $settings = $this->globals->getSettings();
     if (array_key_exists('authCodeDBExpiryTime', $settings)) {
         $this->authCodeRepository->setAuthCodeExpiryTime($settings['authCodeDBExpiryTime']);
     }
     if (array_key_exists('authCodeDBAutoDeleteExpired', $settings)) {
         $this->authCodeRepository->setAutoDeleteExpiredAuthCodes($settings['authCodeDBAutoDeleteExpired']);
     }
 }