[BUGFIX] Add Request Handling for Console 40/41140/2
authorBenjamin Mack <benni@typo3.org>
Mon, 13 Jul 2015 18:44:34 +0000 (20:44 +0200)
committerBenjamin Mack <benni@typo3.org>
Tue, 14 Jul 2015 12:39:02 +0000 (14:39 +0200)
commit93dd893fe90d2a17bbd3f939ca398b603170304e
treee4918719d415fe579ceb1ddfa4caee853ec0d732
parent1e2d303c1da9790a85ef342adef0d5e0ba70c762
[BUGFIX] Add Request Handling for Console

The bootstrap functionality for resolving the RequestHandler
based on the request object added by the PSR-7 change.

The Bootstrap::run() method is now renamed to ->configure()
which does not call resolveRequest() anymore. Instead
resolveRequest() is called explicitly at a later point inside
every Application instance.

This way, the Application instance decides what kind of
Request object should be instantiated and hands it to
the Bootstrap, which in return resolves the RequestHandler.

The original RequestHandlerInterface is now moved to the
Http/ namespace, and a RequestHandlerInterface for the
Console application has been introduced for handling
Console requests, based on Symfony Console.

Resolves: #68085
Releases: master
Change-Id: Ibbc48362739f9849f6e6d9fcadfd2e2a5247f89b
Reviewed-on: http://review.typo3.org/41140
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
16 files changed:
typo3/sysext/backend/Classes/Console/Application.php
typo3/sysext/backend/Classes/Console/CliRequestHandler.php
typo3/sysext/backend/Classes/Http/AjaxRequestHandler.php
typo3/sysext/backend/Classes/Http/Application.php
typo3/sysext/backend/Classes/Http/BackendModuleRequestHandler.php
typo3/sysext/backend/Classes/Http/RequestHandler.php
typo3/sysext/core/Classes/Console/RequestHandlerInterface.php [new file with mode: 0644]
typo3/sysext/core/Classes/Core/Bootstrap.php
typo3/sysext/core/Classes/Core/RequestHandlerInterface.php [deleted file]
typo3/sysext/core/Classes/Http/RequestHandlerInterface.php [new file with mode: 0644]
typo3/sysext/core/Classes/Http/ServerRequestFactory.php
typo3/sysext/frontend/Classes/Http/Application.php
typo3/sysext/frontend/Classes/Http/EidRequestHandler.php
typo3/sysext/frontend/Classes/Http/RequestHandler.php
typo3/sysext/install/Classes/Http/Application.php
typo3/sysext/install/Classes/Http/RequestHandler.php