@@ -65,7 +65,7 @@ public function setResponseFactory(ResponseFactoryInterface $responseFactory)
65
65
}
66
66
public function getResponseFactory () : ResponseFactoryInterface
67
67
{
68
- if (!isset ($ this ->requestFactory )) {
68
+ if (!isset ($ this ->responseFactory )) {
69
69
throw new LogicException ("ResponseFactory is not set. " );
70
70
}
71
71
return $ this ->responseFactory ;
@@ -76,7 +76,7 @@ public function setServerRequestFactory(ServerRequestFactoryInterface $serverReq
76
76
}
77
77
public function getServerRequestFactory () : ServerRequestFactoryInterface
78
78
{
79
- if (!isset ($ this ->requestFactory )) {
79
+ if (!isset ($ this ->serverRequestFactory )) {
80
80
throw new LogicException ("ServerRequestFactory is not set. " );
81
81
}
82
82
return $ this ->serverRequestFactory ;
@@ -87,7 +87,7 @@ public function setStreamFactory(StreamFactoryInterface $streamFactory)
87
87
}
88
88
public function getStreamFactory () : StreamFactoryInterface
89
89
{
90
- if (!isset ($ this ->requestFactory )) {
90
+ if (!isset ($ this ->streamFactory )) {
91
91
throw new LogicException ("StreamFactory is not set. " );
92
92
}
93
93
return $ this ->streamFactory ;
@@ -98,7 +98,7 @@ public function setUploadedFileFactory(UploadedFileFactoryInterface $uploadedFil
98
98
}
99
99
public function getUploadedFileFactory () : UploadedFileFactoryInterface
100
100
{
101
- if (!isset ($ this ->requestFactory )) {
101
+ if (!isset ($ this ->uploadedFileFactory )) {
102
102
throw new LogicException ("UploadedFileFactory is not set. " );
103
103
}
104
104
return $ this ->uploadedFileFactory ;
@@ -109,7 +109,7 @@ public function setUriFactory(UriFactoryInterface $uriFactory)
109
109
}
110
110
public function getUriFactory () : UriFactoryInterface
111
111
{
112
- if (!isset ($ this ->requestFactory )) {
112
+ if (!isset ($ this ->uriFactory )) {
113
113
throw new LogicException ("UriFactory is not set. " );
114
114
}
115
115
return $ this ->uriFactory ;
0 commit comments