Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • C CMS
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
    • Locked Files
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • typo3typo3
  • CI
  • CMS
  • Repository
Switch branch/tag
  • cms
  • ..
  • Controller
  • ActionController.php
Find file BlameHistoryPermalink
  • Alexander Schnitzler's avatar
    [TASK] Extbase controller actions must return ResponseInterface · 970d9bf8
    Alexander Schnitzler authored Nov 06, 2020 and Georg Ringer's avatar Georg Ringer committed Nov 30, 2020
    In the past, Extbase controller actions could return either void,
    null, a string, or an object that implemented the __toString()
    method. All those return types are now deprecated in favor of
    an instance of \Psr\Http\Message\ResponseInterface (PSR-7).
    
    Response objects can be created in the controller by using the
    response factory which is injected into all action controllers.
    
    Alternatively, custom response objects can be declared and used
    as long as they implement the interface and are therefore PSR-7
    compatible.
    
    Releases: master
    Resolves: #92784
    Change-Id: If1e778c29f870fd0e78d253f0cfcff359a0babae
    Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/66553
    
    
    Tested-by: default avatarTYPO3com <noreply@typo3.com>
    Tested-by: Torben Hansen's avatarTorben Hansen <derhansen@gmail.com>
    Tested-by: Daniel Haupt's avatarDaniel Haupt <mail@danielhaupt.de>
    Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
    Reviewed-by: Torben Hansen's avatarTorben Hansen <derhansen@gmail.com>
    Reviewed-by: Daniel Haupt's avatarDaniel Haupt <mail@danielhaupt.de>
    Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
    970d9bf8