Skip to content

Commit

Permalink
Handle existing reponses from Payum\Core\Bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
pierredup committed Dec 26, 2024
1 parent e2a3ffe commit 10a172d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ReplyToSymfonyResponseConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

namespace Payum\Bundle\PayumBundle;

use Payum\Bundle\PayumBundle\Reply\HttpResponse as SymfonyHttpResponse;
use Payum\Core\Bridge\Symfony\Reply\HttpResponse as CoreSymfonyHttpResponse;
use Payum\Core\Bridge\PayumBundle\Reply\HttpResponse as SymfonyHttpResponse;
use Payum\Core\Exception\LogicException;
use Payum\Core\Reply\HttpResponse;
use Payum\Core\Reply\ReplyInterface;
Expand All @@ -16,7 +17,7 @@ class ReplyToSymfonyResponseConverter
*/
public function convert(ReplyInterface $reply)
{
if ($reply instanceof SymfonyHttpResponse) {
if ($reply instanceof SymfonyHttpResponse || $reply instanceof CoreSymfonyHttpResponse) {
return $reply->getResponse();
} elseif ($reply instanceof HttpResponse) {
$headers = $reply->getHeaders();
Expand Down

0 comments on commit 10a172d

Please sign in to comment.