Skip to content

Commit

Permalink
Fix commandExecutor interface mismatch
Browse files Browse the repository at this point in the history
Fix commandExecutor interface mismatch
  • Loading branch information
WEXO committed Jun 3, 2016
1 parent a5fa3af commit cf4e15d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/code/Magento/Payment/Model/Method/Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -507,12 +507,14 @@ private function executeCommand($commandCode, array $arguments = [])
return null;
}

$payment = null;
if (isset($arguments['payment'])) {
$payment = $arguments['payment'];
$arguments['payment'] = $this->paymentDataObjectFactory->create($arguments['payment']);
}

if ($this->commandExecutor !== null) {
return $this->commandExecutor->executeByCode($commandCode, $arguments);
return $this->commandExecutor->executeByCode($commandCode, $payment, $arguments);
}

if ($this->commandPool === null) {
Expand Down

0 comments on commit cf4e15d

Please sign in to comment.