Skip to content

Commit

Permalink
Merge pull request #23 from NOOE-Phygital-Stores/dev
Browse files Browse the repository at this point in the history
v1.1.1 fix orderHistoryFactory
  • Loading branch information
nghelo authored Nov 18, 2022
2 parents eecf5fa + eb6e87f commit 49e2ef2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Model/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ class Order implements OrderInterface
*/
protected $quoteManagement;

/**
* @var \Magento\Sales\Model\Order\Status\HistoryFactory
*/
protected $orderHistoryFactory;

/**
* @var \Magento\Quote\Model\Quote\Address\Rate
*/
Expand All @@ -75,6 +80,7 @@ class Order implements OrderInterface
*/
protected $configData;


/**
* Order constructor.
*
Expand All @@ -87,6 +93,7 @@ class Order implements OrderInterface
* @param \Magento\Catalog\Model\Product $product
* @param \Magento\Quote\Model\QuoteManagement $quoteManagement
* @param \Magento\Quote\Model\Quote\Address\Rate $rate
* @param \Magento\Sales\Model\Order\Status\HistoryFactory
* @param \Nooe\Connector\Helper\Data $configData
* @param \Nooe\Connector\Logger\Logger $logger
*/
Expand All @@ -100,6 +107,7 @@ public function __construct(
\Magento\Catalog\Model\Product $product,
\Magento\Quote\Model\QuoteManagement $quoteManagement,
\Magento\Quote\Model\Quote\Address\Rate $rate,
\Magento\Sales\Model\Order\Status\HistoryFactory $orderHistoryFactory,
\Nooe\Connector\Helper\Data $configData,
\Nooe\Connector\Logger\Logger $logger
) {
Expand All @@ -112,6 +120,7 @@ public function __construct(
$this->_product = $product;
$this->quoteManagement = $quoteManagement;
$this->rate = $rate;
$this->orderHistoryFactory = $orderHistoryFactory;
$this->configData = $configData;
$this->logger = $logger;
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nooe/module-connector",
"description": "Nooe Magento 2 Connector",
"type": "magento2-module",
"version": "1.1.0",
"version": "1.1.1",
"minimum-stability": "stable",
"license": "proprietary",
"require": {
Expand Down

0 comments on commit 49e2ef2

Please sign in to comment.