File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 33namespace Payum \Bundle \PayumBundle ;
44
55use Payum \Bundle \PayumBundle \Reply \HttpResponse as SymfonyHttpResponse ;
6+ use Payum \Core \Bridge \Symfony \Reply \HttpResponse as CoreSymfonyHttpResponse ;
67use Payum \Core \Exception \LogicException ;
78use Payum \Core \Reply \HttpResponse ;
89use Payum \Core \Reply \ReplyInterface ;
@@ -16,9 +17,11 @@ 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 ();
21- } elseif ($ reply instanceof HttpResponse) {
22+ }
23+
24+ if ($ reply instanceof HttpResponse) {
2225 $ headers = $ reply ->getHeaders ();
2326 $ headers ['X-Status-Code ' ] = $ reply ->getStatusCode ();
2427
You can’t perform that action at this time.
0 commit comments