Review main Merged

78263[FEATURE] Replace AbstractUserAuth hooks with PSR-14 Events

Benni Mack CR +2 V +2 Hard +390 −74 updated 03/27/23, 16:45

Commit message

Two new Events are added
* TYPO3\CMS\Core\Authentication\Event\BeforeUserLogoutEvent
* TYPO3\CMS\Core\Authentication\Event\AfterUserLoggedOutEvent
* TYPO3\CMS\Core\Authentication\Event\AfterUserLoggedInEvent

They should be used instead of the hooks:
* $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing']
* $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_post_processing']
* $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauthgroup.php']['backendUserLogin']

as they are now deprecated.

This is an ongoing effort to remove hooks and use
a better and more flexible PSR-14-based EventListener system.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 18