1.. include:: ../../Includes.txt
2
3========================================================================
4Deprecation: #94394 - Extbase Request setDispatched() and isDispatched()
5========================================================================
6
7See :issue:`94394`
8
9Description
10===========
11
12To further prepare towards PSR-7 requests in Extbase, the two
13methods :php:`TYPO3\CMS\Extbase\Mvc\Request->setDispatched()` and
14:php:`TYPO3\CMS\Extbase\Mvc\Request->isDispatched()` have been
15marked as deprecated.
16
17
18Impact
19======
20
21Using the methods is discouraged. The Extbase dispatcher still
22recognizes them and acts accordingly, the methods do **not** raise
23a deprecation level log entry, though.
24
25
26Affected Installations
27======================
28
29Some Extbase based extensions may use :php:`setDispatched()`, but
30it's rather unlikely since that flag has been mostly used internally
31through existing helper methods in Extbase controllers.
32
33The extension scanner will find possible candidates.
34
35
36Migration
37=========
38
39Action dispatching in Extbase now depends on the returned response:
40
41*  A casual 2xx Response from a controller action that for instance contains HTML
42   or Json stops Extbase dispatching, the response is later returned to the client.
43
44*  An Extbase :php:`ForwardResponse` instructs the dispatcher to dispatch
45   internally to another controller action.
46
47*  A 3xx :php:`RedirectResponse` stops dispatching and is returned to the client
48   to initiate some client redirect.
49
50.. index:: PHP-API, FullyScanned, ext:extbase
51