Project

General

Profile

Actions

Task #67558

closed

Epic #63641: Introduce Request/Response model

Introduce Request/Response objects for the Bootstrap based on PSR-7

Added by Benni Mack over 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Miscellaneous
Target version:
Start date:
2015-06-17
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

The PSR-7 standard is adapted into the TYPO3 Bootstrap with
a backwards-compatible layer.

At any request a new ServerRequest object is created from the Bootstrap
and handed over to the RequestHandler which can then use this object
for checking certain GET and POST variables instead of using GeneralUtility.

Please note that the PSR-7 standard works with Value Objects meaning
that it is not possible to modify any object but instead new objects
will be created for Message, ServerRequest and Response if modified.

The next steps are: * Introduce a common Base Controller for all regular BE requests which is based on Request/Response and works as a replacement for sc_base. * Resolve the rest of the todos and handle header() calls properly * Integrate proper Routing + Dispatching for Backend Routes to register new BE requests * Then: proper documentation for the whole bootstrap / dispatch + routing / controller logic * Migrate all AJAX Calls to use the new API and request / response handling * Integrate symfony console app into the CLI Bootstrap as alternative for Request/Response * Refactor TSFE to use Response / Request objects properly.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #68506: Extbase must use response-object to set response-headers/statuscodeClosed2015-07-24

Actions
Actions

Also available in: Atom PDF