Is your feature request related to a problem? Please describe.
Sometimes it is useful to get a reference to the PSR-7 request object via the provided PSR-14 events, so event listeners
can use that instead of using the global variables.
The manual of this extension has some use cases:
Page types as custom dimension: Uses TSFE which can be retrieved beginning with TYPO3 v11 with the request attribute frontend.controller.
Remove person-related parts from URL: Uses request object for retrieving query parameters and current URL.
Describe the solution you'd like
All event listeners have a new method getRequest() which returns the PSR-7 request object.
Describe alternatives you've considered
Retrieving the global variable $GLOBALS['TYPO3_REQUEST'] or $GLOBALS['TSFE'] which should be avoided.
Acceptance criteria
[x] All events provide a method getRequest() which returns the PSR-7 request object.
[x] The documentation for the events is adjusted.
[x] The use cases are adjusted.
[x] A feature entry in the changelog is available.
Is your feature request related to a problem? Please describe.
Sometimes it is useful to get a reference to the PSR-7 request object via the provided PSR-14 events, so event listeners can use that instead of using the global variables.
The manual of this extension has some use cases:
frontend.controller
.Describe the solution you'd like
All event listeners have a new method
getRequest()
which returns the PSR-7 request object.Describe alternatives you've considered
Retrieving the global variable
$GLOBALS['TYPO3_REQUEST']
or$GLOBALS['TSFE']
which should be avoided.Acceptance criteria
getRequest()
which returns the PSR-7 request object.