File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ public static function findUploadedFileFactory()
111
111
*
112
112
* @throws Exception\NotFoundException
113
113
*/
114
- public static function findUrlFactory ()
114
+ public static function findUriFactory ()
115
115
{
116
116
try {
117
117
$ messageFactory = static ::findOneByType (UriFactoryInterface::class);
@@ -121,4 +121,16 @@ public static function findUrlFactory()
121
121
122
122
return static ::instantiateClass ($ messageFactory );
123
123
}
124
+
125
+ /**
126
+ * @return UriFactoryInterface
127
+ *
128
+ * @throws Exception\NotFoundException
129
+ *
130
+ * @deprecated This will be removed in 2.0. Consider using the findUrlFactory() method.
131
+ */
132
+ public static function findUrlFactory ()
133
+ {
134
+ return static ::findUriFactory ();
135
+ }
124
136
}
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ public function getFactories()
42
42
yield ['findServerRequestFactory ' , ServerRequestFactoryInterface::class];
43
43
yield ['findStreamFactory ' , StreamFactoryInterface::class];
44
44
yield ['findUploadedFileFactory ' , UploadedFileFactoryInterface::class];
45
+ yield ['findUriFactory ' , UriFactoryInterface::class];
45
46
yield ['findUrlFactory ' , UriFactoryInterface::class];
46
47
}
47
48
}
You can’t perform that action at this time.
0 commit comments