[BUGFIX] Code example in feature .rst 59/53559/2
authorJacob Dreesen <noreply@example.com>
Thu, 20 Jul 2017 11:50:50 +0000 (13:50 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 20 Jul 2017 16:48:48 +0000 (18:48 +0200)
Releases: master, 8.7
Resolves: #81928
Change-Id: I7dc15a12e54f11630d162e670e04fb793b07aa5f
Reviewed-on: https://review.typo3.org/53559
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Documentation/Changelog/8.1/Feature-70056-GuzzleForHttpRequests.rst

index 0357cd9..4eb9d4d 100644 (file)
@@ -45,7 +45,7 @@ The `RequestFactory` class can be used like this:
    // Initiate the Request Factory, which allows to run multiple requests
    /** @var \TYPO3\CMS\Core\Http\RequestFactory $requestFactory */
    $requestFactory = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Http\RequestFactory\RequestFactory::class);
-   $uri =
+   $url = 'https://typo3.com';
    $additionalOptions = [
       // Additional headers for this specific request
       'headers' => ['Cache-Control' => 'no-cache'],
@@ -65,4 +65,4 @@ The `RequestFactory` class can be used like this:
 Extension authors are advised to use the `RequestFactory` class instead of using the Guzzle API directly in order to ensure
 a clear upgrade path when updates to the underlying API need to be done.
 
-.. index:: PHP-API, LocalConfiguration
\ No newline at end of file
+.. index:: PHP-API, LocalConfiguration