[TASK] Move BE User initialization into PSR-15 middleware
The initialization of a Backend user for Frontend Contexts is currently bound to TSFE, however, the only parts where TSFE is actually needed is to set the flag "beUserLogin". Additionally, the initialization of the Language object is now moved into the middleware, directly after the set up of $GLOBALS['BE_USER'] to allow the admin panel to use $GLOBALS['LANG'] as well. Further steps are to deprecate "$TSFE->initializeBackendUser()" method, and to deprecate the hooks, as they can now be implemented as PSR-15 middlewares. Additional cleanups on the Authentication object will follow separately once all Middlewares and the Request object are in place. For now, this patch aims to extract the logic and keep maximum backwards- compatibility. Resolves: #83959 Releases: master Change-Id: Ia4055f2d3671e9c14e492baa4eea724d989e9521 Reviewed-on: https://review.typo3.org/55793 Reviewed-by:Benjamin Franzke <bfr@qbus.de> Tested-by:
Benjamin Franzke <bfr@qbus.de> Tested-by:
TYPO3com <no-reply@typo3.com> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch>
Showing
- typo3/sysext/frontend/Classes/Http/RequestHandler.php 0 additions, 15 deletionstypo3/sysext/frontend/Classes/Http/RequestHandler.php
- typo3/sysext/frontend/Classes/Middleware/BackendUserAuthenticator.php 114 additions, 0 deletions.../frontend/Classes/Middleware/BackendUserAuthenticator.php
- typo3/sysext/frontend/Configuration/RequestMiddlewares.php 6 additions, 0 deletionstypo3/sysext/frontend/Configuration/RequestMiddlewares.php
Please register or sign in to comment