Skip to content
  • Benni Mack's avatar
    [TASK] Move BE User initialization into PSR-15 middleware · f7463c76
    Benni Mack authored
    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: default avatarBenjamin Franzke <bfr@qbus.de>
    Tested-by: default avatarBenjamin Franzke <bfr@qbus.de>
    Tested-by: default avatarTYPO3com <no-reply@typo3.com>
    Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
    Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
    f7463c76