10
10
use Magento \CatalogInventory \Model \Stock ;
11
11
use Magento \Framework \App \ObjectManager ;
12
12
use Magento \Framework \EntityManager \MetadataPool ;
13
- use Magento \Sales \Model \ConfigInterface ;
13
+ use Magento \Sales \Model \Config ;
14
14
15
15
/**
16
16
* Wishlist item collection
@@ -154,7 +154,7 @@ class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\Ab
154
154
private $ tableMaintainer ;
155
155
156
156
/**
157
- * @var ConfigInterface
157
+ * @var Config
158
158
*/
159
159
private $ salesConfig ;
160
160
@@ -178,7 +178,7 @@ class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\Ab
178
178
* @param \Magento\Framework\App\State $appState
179
179
* @param \Magento\Framework\DB\Adapter\AdapterInterface $connection
180
180
* @param TableMaintainer|null $tableMaintainer
181
- * @param ConfigInterface |null $salesConfig
181
+ * @param Config |null $salesConfig
182
182
*
183
183
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
184
184
*/
@@ -202,7 +202,7 @@ public function __construct(
202
202
\Magento \Framework \App \State $ appState ,
203
203
\Magento \Framework \DB \Adapter \AdapterInterface $ connection = null ,
204
204
TableMaintainer $ tableMaintainer = null ,
205
- ConfigInterface $ salesConfig = null
205
+ Config $ salesConfig = null
206
206
) {
207
207
$ this ->stockConfiguration = $ stockConfiguration ;
208
208
$ this ->_adminhtmlSales = $ adminhtmlSales ;
@@ -218,7 +218,7 @@ public function __construct(
218
218
$ this ->_appState = $ appState ;
219
219
parent ::__construct ($ entityFactory , $ logger , $ fetchStrategy , $ eventManager , $ connection , $ resource );
220
220
$ this ->tableMaintainer = $ tableMaintainer ?: ObjectManager::getInstance ()->get (TableMaintainer::class);
221
- $ this ->salesConfig = $ salesConfig ?: ObjectManager::getInstance ()->get (ConfigInterface ::class);
221
+ $ this ->salesConfig = $ salesConfig ?: ObjectManager::getInstance ()->get (Config ::class);
222
222
}
223
223
224
224
/**
0 commit comments