[TASK] Extbase controller actions must return ResponseInterface
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:TYPO3com <noreply@typo3.com> Tested-by:
Torben Hansen <derhansen@gmail.com> Tested-by:
Daniel Haupt <mail@danielhaupt.de> Tested-by:
Georg Ringer <georg.ringer@gmail.com> Reviewed-by:
Torben Hansen <derhansen@gmail.com> Reviewed-by:
Daniel Haupt <mail@danielhaupt.de> Reviewed-by:
Georg Ringer <georg.ringer@gmail.com>
Showing
- typo3/sysext/belog/Classes/Controller/BackendLogController.php 4 additions, 1 deletion.../sysext/belog/Classes/Controller/BackendLogController.php
- typo3/sysext/beuser/Classes/Controller/BackendUserController.php 12 additions, 4 deletions...ysext/beuser/Classes/Controller/BackendUserController.php
- typo3/sysext/beuser/Classes/Controller/BackendUserGroupController.php 7 additions, 2 deletions.../beuser/Classes/Controller/BackendUserGroupController.php
- typo3/sysext/core/Classes/Http/JsonResponse.php 3 additions, 0 deletionstypo3/sysext/core/Classes/Http/JsonResponse.php
- typo3/sysext/core/Classes/Http/Response.php 0 additions, 2 deletionstypo3/sysext/core/Classes/Http/Response.php
- typo3/sysext/core/Classes/Http/ResponseFactory.php 61 additions, 4 deletionstypo3/sysext/core/Classes/Http/ResponseFactory.php
- typo3/sysext/core/Classes/Http/ResponseFactoryInterface.php 28 additions, 0 deletionstypo3/sysext/core/Classes/Http/ResponseFactoryInterface.php
- typo3/sysext/core/Configuration/Services.yaml 3 additions, 0 deletionstypo3/sysext/core/Configuration/Services.yaml
- typo3/sysext/core/Documentation/Changelog/master/Deprecation-92784-ExtbaseControllerActionsMustReturnResponseInterface.rst 89 additions, 0 deletions...4-ExtbaseControllerActionsMustReturnResponseInterface.rst
- typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php 33 additions, 0 deletions...ysext/extbase/Classes/Mvc/Controller/ActionController.php
- typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Classes/Controller/BlogController.php 11 additions, 14 deletions...nsions/blog_example/Classes/Controller/BlogController.php
- typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Classes/Controller/ContentController.php 3 additions, 1 deletion...ons/blog_example/Classes/Controller/ContentController.php
- typo3/sysext/filelist/Classes/Controller/FileListController.php 10 additions, 3 deletions...sysext/filelist/Classes/Controller/FileListController.php
- typo3/sysext/form/Classes/Controller/FormFrontendController.php 4 additions, 1 deletion...sysext/form/Classes/Controller/FormFrontendController.php
- typo3/sysext/indexed_search/Classes/Controller/AdministrationController.php 18 additions, 6 deletions...ed_search/Classes/Controller/AdministrationController.php
- typo3/sysext/indexed_search/Classes/Controller/SearchController.php 9 additions, 3 deletions...xt/indexed_search/Classes/Controller/SearchController.php
Please register or sign in to comment