Skip to content

Commit d4f6114

Browse files
Merge pull request #56 from daniellienert/bugfix/use-flow-response
BUGFIX: Use named Flow response
2 parents 9c4cd0f + dc4e25b commit d4f6114

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Classes/Transfer/Exception.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
*/
1313
use Flowpack\ElasticSearch\Exception as ElasticSearchException;
1414
use Neos\Flow\Http\Request;
15-
use Neos\Flow\Http\Response;
15+
use Neos\Flow\Http\Response as FlowResponse;
1616

1717
/**
1818
* Exception that occurs related to ElasticSearch transfers
1919
*/
2020
class Exception extends ElasticSearchException
2121
{
2222
/**
23-
* @var Response
23+
* @var FlowResponse
2424
*/
2525
protected $response;
2626

@@ -34,11 +34,11 @@ class Exception extends ElasticSearchException
3434
*
3535
* @param string $message
3636
* @param int $code
37-
* @param Response $response
37+
* @param FlowResponse $response
3838
* @param Request $request
3939
* @param \Exception $previous
4040
*/
41-
public function __construct($message, $code, Response $response, Request $request = null, \Exception $previous = null)
41+
public function __construct($message, $code, FlowResponse $response, Request $request = null, \Exception $previous = null)
4242
{
4343
$this->response = $response;
4444
$this->request = $request;
@@ -64,7 +64,7 @@ public function getRequest()
6464
}
6565

6666
/**
67-
* @return Response
67+
* @return FlowResponse
6868
*/
6969
public function getResponse()
7070
{

0 commit comments

Comments
 (0)