Skip to content

Commit 51ab6cc

Browse files
committed
Fixed factory check bug.
1 parent 68e2ec2 commit 51ab6cc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/utils/HttpFactoryManager.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function setResponseFactory(ResponseFactoryInterface $responseFactory)
6565
}
6666
public function getResponseFactory() : ResponseFactoryInterface
6767
{
68-
if (!isset($this->requestFactory)) {
68+
if (!isset($this->responseFactory)) {
6969
throw new LogicException("ResponseFactory is not set.");
7070
}
7171
return $this->responseFactory;
@@ -76,7 +76,7 @@ public function setServerRequestFactory(ServerRequestFactoryInterface $serverReq
7676
}
7777
public function getServerRequestFactory() : ServerRequestFactoryInterface
7878
{
79-
if (!isset($this->requestFactory)) {
79+
if (!isset($this->serverRequestFactory)) {
8080
throw new LogicException("ServerRequestFactory is not set.");
8181
}
8282
return $this->serverRequestFactory;
@@ -87,7 +87,7 @@ public function setStreamFactory(StreamFactoryInterface $streamFactory)
8787
}
8888
public function getStreamFactory() : StreamFactoryInterface
8989
{
90-
if (!isset($this->requestFactory)) {
90+
if (!isset($this->streamFactory)) {
9191
throw new LogicException("StreamFactory is not set.");
9292
}
9393
return $this->streamFactory;
@@ -98,7 +98,7 @@ public function setUploadedFileFactory(UploadedFileFactoryInterface $uploadedFil
9898
}
9999
public function getUploadedFileFactory() : UploadedFileFactoryInterface
100100
{
101-
if (!isset($this->requestFactory)) {
101+
if (!isset($this->uploadedFileFactory)) {
102102
throw new LogicException("UploadedFileFactory is not set.");
103103
}
104104
return $this->uploadedFileFactory;
@@ -109,7 +109,7 @@ public function setUriFactory(UriFactoryInterface $uriFactory)
109109
}
110110
public function getUriFactory() : UriFactoryInterface
111111
{
112-
if (!isset($this->requestFactory)) {
112+
if (!isset($this->uriFactory)) {
113113
throw new LogicException("UriFactory is not set.");
114114
}
115115
return $this->uriFactory;

0 commit comments

Comments
 (0)