[!!!][FEATURE] Introduce Guzzle for making HTTP Requests 08/43508/22
authorBenni Mack <benni@typo3.org>
Wed, 30 Mar 2016 11:58:11 +0000 (13:58 +0200)
committerSusanne Moog <typo3@susannemoog.de>
Thu, 31 Mar 2016 21:57:09 +0000 (23:57 +0200)
commit23fa188f7f2193fc07b443d04c0f7d493ecb7043
treeb53b1c25e59e0992c6c30233427dde9d62998a4a
parent88eb5b6848ae5af57bcde05bed6c06a533e62b4f
[!!!][FEATURE] Introduce Guzzle for making HTTP Requests

The Guzzle library is added as a composer dependency
instead of HttpRequest to request urls from TYPO3.

Guzzle is encapsulated inside a RequestFactory to do
requests and return PSR-7 compliant Response objects
to deal with content. In the future, Guzzle can also be used
to do HTTP requests asynchronously but there is no API
for that yet as there is no current need for that in the
TYPO3 Core.

GeneralUtility::getUrl() now uses Guzzle under the hood,
thus adding headers like the TYPO3 User Agent by default.

A lot of existing TYPO3_CONF_VARS options are now
removed or merged into Guzzle compliant options which
are independant of the implementation (cURL, stream
wrappers, fopen etc).

Resolves: #70056
Releases: master
Change-Id: Ibd14bba944b1590bae1b12c10f26365f20576475
Reviewed-on: https://review.typo3.org/43508
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
22 files changed:
composer.json
composer.lock
typo3/sysext/backend/Classes/Clipboard/Clipboard.php
typo3/sysext/core/Classes/Core/Bootstrap.php
typo3/sysext/core/Classes/Http/HttpRequest.php [deleted file]
typo3/sysext/core/Classes/Http/Observer/Download.php [deleted file]
typo3/sysext/core/Classes/Http/RequestFactory.php [new file with mode: 0644]
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/core/Configuration/DefaultConfiguration.php
typo3/sysext/core/Documentation/Changelog/master/Breaking-70056-CurlAndHttpRequestRemoved.rst [new file with mode: 0644]
typo3/sysext/core/Documentation/Changelog/master/Feature-70056-GuzzleForHttpRequests.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Http/HttpRequestTest.php [deleted file]
typo3/sysext/core/Tests/Unit/Utility/Fixtures/GeneralUtilityFixture.php
typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php
typo3/sysext/documentation/Classes/Service/DocumentationService.php
typo3/sysext/extensionmanager/Classes/Utility/Connection/TerUtility.php
typo3/sysext/extensionmanager/Classes/Utility/Repository/Helper.php
typo3/sysext/install/Classes/Service/SilentConfigurationUpgradeService.php
typo3/sysext/install/Classes/Updates/AbstractDownloadExtensionUpdate.php
typo3/sysext/install/Tests/Unit/Service/SilentConfigurationUpgradeServiceTest.php
typo3/sysext/lang/Classes/Service/TerService.php
typo3/sysext/linkvalidator/Classes/Linktype/ExternalLinktype.php