Skip to content

Commit 10a172d

Browse files
committed
Handle existing reponses from Payum\Core\Bridge
1 parent e2a3ffe commit 10a172d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ReplyToSymfonyResponseConverter.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
namespace Payum\Bundle\PayumBundle;
44

5-
use Payum\Bundle\PayumBundle\Reply\HttpResponse as SymfonyHttpResponse;
5+
use Payum\Core\Bridge\Symfony\Reply\HttpResponse as CoreSymfonyHttpResponse;
6+
use Payum\Core\Bridge\PayumBundle\Reply\HttpResponse as SymfonyHttpResponse;
67
use Payum\Core\Exception\LogicException;
78
use Payum\Core\Reply\HttpResponse;
89
use Payum\Core\Reply\ReplyInterface;
@@ -16,7 +17,7 @@ class ReplyToSymfonyResponseConverter
1617
*/
1718
public function convert(ReplyInterface $reply)
1819
{
19-
if ($reply instanceof SymfonyHttpResponse) {
20+
if ($reply instanceof SymfonyHttpResponse || $reply instanceof CoreSymfonyHttpResponse) {
2021
return $reply->getResponse();
2122
} elseif ($reply instanceof HttpResponse) {
2223
$headers = $reply->getHeaders();

0 commit comments

Comments
 (0)