File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ All notable changes to this project will be documented in this file.
6
6
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ )
7
7
and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
8
8
9
+ ## [ 1.11.1] - 2021-05-24
10
+
11
+ - Support GuzzleHttp/Psr7 version 2.0 in the (deprecated) GuzzleUriFactory.
12
+
9
13
## [ 1.11.0] - 2020-02-01
10
14
11
15
- Migrated from ` zendframework/zend-diactoros ` to ` laminas/laminas-diactoros ` .
Original file line number Diff line number Diff line change 2
2
3
3
namespace Http \Message \UriFactory ;
4
4
5
- use GuzzleHttp \Psr7 ;
5
+ use function GuzzleHttp \Psr7 \uri_for ;
6
+ use GuzzleHttp \Psr7 \Utils ;
6
7
use Http \Message \UriFactory ;
7
8
8
9
/**
@@ -19,6 +20,10 @@ final class GuzzleUriFactory implements UriFactory
19
20
*/
20
21
public function createUri ($ uri )
21
22
{
22
- return Psr7 \uri_for ($ uri );
23
+ if (class_exists (Utils::class)) {
24
+ return Utils::uriFor ($ uri );
25
+ }
26
+
27
+ return uri_for ($ uri );
23
28
}
24
29
}
You can’t perform that action at this time.
0 commit comments