Skip to content

Commit 7c38017

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: Update best_practices.rst [HttpClient] Mention how to get the effective response URL
2 parents 6ee67f1 + 0a5c122 commit 7c38017

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

best_practices.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Use Autowiring to Automate the Configuration of Application Services
170170

171171
:doc:`Service autowiring </service_container/autowiring>` is a feature that
172172
reads the type-hints on your constructor (or other methods) and automatically
173-
passes the correct services to each method, making unnecessary to configure
173+
passes the correct services to each method, making it unnecessary to configure
174174
services explicitly and simplifying the application maintenance.
175175

176176
Use it in combination with :ref:`service autoconfiguration <services-autoconfigure>`

http_client.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,8 @@ following methods::
943943

944944
// you can get individual info too
945945
$startTime = $response->getInfo('start_time');
946+
// e.g. this returns the final response URL (resolving redirections if needed)
947+
$url = $response->getInfo('url');
946948

947949
// returns detailed logs about the requests and responses of the HTTP transaction
948950
$httpLogs = $response->getInfo('debug');

0 commit comments

Comments
 (0)