Skip to content

Commit

Permalink
Merge branch 'composer-update' into improve/php7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Dec 18, 2019
2 parents 30c9de8 + cab9441 commit beb010d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Eccube/Controller/ShoppingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
use Eccube\Service\PurchaseFlow\PurchaseFlow;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Routing\RouterInterface;
Expand Down Expand Up @@ -283,7 +284,7 @@ public function confirm(Request $request)
}

$response = $PaymentResult->getResponse();
if ($response && ($response->isRedirection() || $response->getContent())) {
if ($response instanceof Response && ($response->isRedirection() || $response->isSuccessful())) {
$this->entityManager->flush();

log_info('[注文確認] PaymentMethod::verifyが指定したレスポンスを表示します.');
Expand Down Expand Up @@ -736,7 +737,7 @@ protected function executeApply(PaymentMethodInterface $paymentMethod)
$this->entityManager->flush();

// dispatcherがresponseを保持している場合はresponseを返す
if ($response && ($response->isRedirection() || $response->getContent())) {
if ($response instanceof Response && ($response->isRedirection() || $response->isSuccessful())) {
log_info('[注文処理] PaymentMethod::applyが指定したレスポンスを表示します.');

return $response;
Expand Down Expand Up @@ -771,7 +772,7 @@ protected function executeCheckout(PaymentMethodInterface $paymentMethod)
$PaymentResult = $paymentMethod->checkout();
$response = $PaymentResult->getResponse();
// PaymentResultがresponseを保持している場合はresponseを返す
if ($response && ($response->isRedirection() || $response->getContent())) {
if ($response instanceof Response && ($response->isRedirection() || $response->isSuccessful())) {
$this->entityManager->flush();
log_info('[注文処理] PaymentMethod::checkoutが指定したレスポンスを表示します.');

Expand Down

0 comments on commit beb010d

Please sign in to comment.