Skip to content

Commit

Permalink
Correct missing commits for #10210
Browse files Browse the repository at this point in the history
Add missing commits for \app\code\Magento\Sales\Model\Order\Email\Sender\OrderSender.php
  • Loading branch information
gwharton committed May 7, 2018
1 parent ca3245f commit 874260d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/code/Magento/Sales/Model/Order/Email/Sender/OrderSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Magento\Sales\Model\ResourceModel\Order as OrderResource;
use Magento\Sales\Model\Order\Address\Renderer;
use Magento\Framework\Event\ManagerInterface;
use Magento\Framework\DataObject;

/**
* Class OrderSender
Expand Down Expand Up @@ -130,14 +131,17 @@ protected function prepareTemplate(Order $order)
'formattedShippingAddress' => $this->getFormattedShippingAddress($order),
'formattedBillingAddress' => $this->getFormattedBillingAddress($order),
];
$transport = new \Magento\Framework\DataObject($transport);
$transportObject = new DataObject($transport);

/**
* Event argument `transport` is @deprecated. Use `transportObject` instead.
*/
$this->eventManager->dispatch(
'email_order_set_template_vars_before',
['sender' => $this, 'transport' => $transport]
['sender' => $this, 'transport' => $transportObject->getData(), 'transportObject' => $transportObject]
);

$this->templateContainer->setTemplateVars($transport->getData());
$this->templateContainer->setTemplateVars($transportObject->getData());

parent::prepareTemplate($order);
}
Expand Down

0 comments on commit 874260d

Please sign in to comment.