Skip to content

Commit be351ee

Browse files
Fixed typo in method name
1 parent 3cc2bcd commit be351ee

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/Psr17FactoryDiscovery.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public static function findUploadedFileFactory()
111111
*
112112
* @throws Exception\NotFoundException
113113
*/
114-
public static function findUrlFactory()
114+
public static function findUriFactory()
115115
{
116116
try {
117117
$messageFactory = static::findOneByType(UriFactoryInterface::class);
@@ -121,4 +121,16 @@ public static function findUrlFactory()
121121

122122
return static::instantiateClass($messageFactory);
123123
}
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+
}
124136
}

0 commit comments

Comments
 (0)