Deprecation-89673-ExtbasesWebRequestAndWebResponse.rst 1.65 KB
Newer Older
1
2
.. include:: ../../Includes.txt

3
4
5
==========================================================
Deprecation: #89673 - Extbase's WebRequest and WebResponse
==========================================================
6
7
8
9
10
11

See :issue:`89673`

Description
===========

12
13
Both classes :php:`\TYPO3\CMS\Extbase\Mvc\Web\Request` and :php:`\TYPO3\CMS\Extbase\Mvc\Web\Response`
have been marked as deprecated. Along with their deprecation, all relevant logic has been moved into their parent
14
15
16
17
18
19
20
21
22
23
classes :php:`\TYPO3\CMS\Extbase\Mvc\Request` and :php:`\TYPO3\CMS\Extbase\Mvc\Response`.

This is done to simplify the request/response handling of Extbase and to ease the transition towards
a PSR-7 compatible handling.


Impact
======

There is no impact yet as the "web" versions of the request and response are still used by Extbase.
24
The only thing that is worth mentioning is that those who implement custom requests and/or responses
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
should derive from the non "web" versions now.


Affected Installations
======================

All installations that implement custom request/response objects that derive from
:php:`\TYPO3\CMS\Extbase\Mvc\Web\Request` and :php:`\TYPO3\CMS\Extbase\Mvc\Web\Response`.

Those who don't change the request/response handling, will not realize this change.


Migration
=========

40
All installations that implement custom request/response objects that derive from
41
42
:php:`\TYPO3\CMS\Extbase\Mvc\Web\Request` and :php:`\TYPO3\CMS\Extbase\Mvc\Web\Response` should now
derive from :php:`\TYPO3\CMS\Extbase\Mvc\Request` (and override the :php:`$format` property) and
43
:php:`\TYPO3\CMS\Extbase\Mvc\Response` (and override the :php:`shutdown` method).
44
45

.. index:: PHP-API, NotScanned, ext:extbase