Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • typo3 typo3
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Insights
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • typo3typo3
  • typo3typo3
  • Repository
Switch branch/tag
  • typo3
  • typo3
  • sysext
  • frontend
  • Classes
  • Http
  • RequestHandler.php
Find file BlameHistoryPermalink
  • Benni Mack's avatar
    [!!!][TASK] Build strict PSR-15 middlewares · 9618006a
    Benni Mack authored Jan 18, 2019 and Georg Ringer's avatar Georg Ringer committed Feb 07, 2019
    All PSR-15 middlewares now do not set the
    $GLOBALS['TYPO3_REQUEST'] object anymore. Instead,
    the RequestHandlers are using them for all
    other logic (e.g. GP etc) where the request object
    or any other attribute has not been handed in
    yet.
    
    It is now safe to say that PSR-7 request/response
    objects have to be used within middlewares to
    access or manipulate GET/POST data. Also,
    the safety net for overriding GET/POST again
    is still in place for FE (data = GP:id) in
    order for existing TypoScript to work still,
    until all other code gets global-free.
    
    There are still places in TYPO3 Core where $TYPO3_REQUEST
    is necessary (TypoScriptConditionMatcher, Error Handling)
    which are added accordingly.
    
    Resolves: #87661
    Releases: master
    Change-Id: Ibe499b6fda86ccd3abefcb3c8be294a7cb765d74
    Reviewed-on: https://review.typo3.org/59490
    
    
    Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
    Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
    Tested-by: default avatarTYPO3com <noreply@typo3.com>
    Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
    Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
    9618006a