[TASK] Directly wire Application and RequestHandler
The frontend and backend Application and RequestHandler classes are tightly coupled since the frontend eID request handler was moved into a middleware and the backend ajax request handler was merged with the regular request handler. (1:1 relationship) There is no (longer) need to resolve the request handler in Bootstap. For the install application we are still using two request handlers but will dispatch them from within the application now. That means the call chain is now: Application -> RequestHandler instead of: Application -> Bootstrap -> RequestHandler That allows us to deprecate all HTTP related code in Bootstrap (with a separate commit) and instead implement that in an HTTP specific ApplicationTrait. This patch introduces a legacy RequestHandler dispatcher middleware which ensures that registering custom request handlers using Bootstrap::registerAdditionalRequestHandler() still works for the frontend and backend. (although it is marked @internal, there is interest to not just drop this) Change-Id: Id80158bb3d078719f6508ae950b2f32f018e1ac4 Releases: master Resolves: #83864 Reviewed-on: https://review.typo3.org/55642 Reviewed-by:Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
TYPO3com <no-reply@typo3.com> Reviewed-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Susanne Moog <susanne.moog@typo3.org> Tested-by:
Susanne Moog <susanne.moog@typo3.org>
Showing
- typo3/sysext/backend/Classes/Http/Application.php 13 additions, 30 deletionstypo3/sysext/backend/Classes/Http/Application.php
- typo3/sysext/backend/Configuration/RequestMiddlewares.php 6 additions, 0 deletionstypo3/sysext/backend/Configuration/RequestMiddlewares.php
- typo3/sysext/core/Classes/Console/CommandApplication.php 3 additions, 15 deletionstypo3/sysext/core/Classes/Console/CommandApplication.php
- typo3/sysext/core/Classes/Core/Bootstrap.php 4 additions, 23 deletionstypo3/sysext/core/Classes/Core/Bootstrap.php
- typo3/sysext/core/Classes/Http/AbstractApplication.php 110 additions, 0 deletionstypo3/sysext/core/Classes/Http/AbstractApplication.php
- typo3/sysext/core/Classes/Middleware/LegacyRequestHandlerDispatcher.php 68 additions, 0 deletions...ore/Classes/Middleware/LegacyRequestHandlerDispatcher.php
- typo3/sysext/frontend/Classes/Http/Application.php 13 additions, 30 deletionstypo3/sysext/frontend/Classes/Http/Application.php
- typo3/sysext/frontend/Configuration/RequestMiddlewares.php 6 additions, 0 deletionstypo3/sysext/frontend/Configuration/RequestMiddlewares.php
- typo3/sysext/install/Classes/Http/Application.php 15 additions, 17 deletionstypo3/sysext/install/Classes/Http/Application.php
Please register or sign in to comment