3
3
namespace Http \Discovery ;
4
4
5
5
use Http \Discovery \Exception \DiscoveryFailedException ;
6
+ use Http \Discovery \Exception \NotFoundException as RealNotFoundException ;
6
7
use Psr \Http \Message \RequestFactoryInterface ;
7
8
use Psr \Http \Message \ResponseFactoryInterface ;
8
9
use Psr \Http \Message \ServerRequestFactoryInterface ;
@@ -19,7 +20,7 @@ final class Psr17FactoryDiscovery extends ClassDiscovery
19
20
{
20
21
private static function createException ($ type , Exception $ e )
21
22
{
22
- return new \ Http \ Discovery \ Exception \ NotFoundException (
23
+ return new RealNotFoundException (
23
24
'No PSR-17 ' .$ type .' found. Install a package from this list: https://packagist.org/providers/psr/http-factory-implementation ' ,
24
25
0 ,
25
26
$ e
@@ -29,7 +30,7 @@ private static function createException($type, Exception $e)
29
30
/**
30
31
* @return RequestFactoryInterface
31
32
*
32
- * @throws Exception\NotFoundException
33
+ * @throws RealNotFoundException
33
34
*/
34
35
public static function findRequestFactory ()
35
36
{
@@ -45,7 +46,7 @@ public static function findRequestFactory()
45
46
/**
46
47
* @return ResponseFactoryInterface
47
48
*
48
- * @throws Exception\NotFoundException
49
+ * @throws RealNotFoundException
49
50
*/
50
51
public static function findResponseFactory ()
51
52
{
@@ -61,7 +62,7 @@ public static function findResponseFactory()
61
62
/**
62
63
* @return ServerRequestFactoryInterface
63
64
*
64
- * @throws Exception\NotFoundException
65
+ * @throws RealNotFoundException
65
66
*/
66
67
public static function findServerRequestFactory ()
67
68
{
@@ -77,7 +78,7 @@ public static function findServerRequestFactory()
77
78
/**
78
79
* @return StreamFactoryInterface
79
80
*
80
- * @throws Exception\NotFoundException
81
+ * @throws RealNotFoundException
81
82
*/
82
83
public static function findStreamFactory ()
83
84
{
@@ -93,7 +94,7 @@ public static function findStreamFactory()
93
94
/**
94
95
* @return UploadedFileFactoryInterface
95
96
*
96
- * @throws Exception\NotFoundException
97
+ * @throws RealNotFoundException
97
98
*/
98
99
public static function findUploadedFileFactory ()
99
100
{
@@ -109,7 +110,7 @@ public static function findUploadedFileFactory()
109
110
/**
110
111
* @return UriFactoryInterface
111
112
*
112
- * @throws Exception\NotFoundException
113
+ * @throws RealNotFoundException
113
114
*/
114
115
public static function findUriFactory ()
115
116
{
@@ -125,7 +126,7 @@ public static function findUriFactory()
125
126
/**
126
127
* @return UriFactoryInterface
127
128
*
128
- * @throws Exception\NotFoundException
129
+ * @throws RealNotFoundException
129
130
*
130
131
* @deprecated This will be removed in 2.0. Consider using the findUriFactory() method.
131
132
*/
0 commit comments