9
9
use Magento \Store \Model \Store ;
10
10
use Magento \Framework \App \ObjectManager ;
11
11
use Magento \Store \Model \ScopeInterface ;
12
- use Magento \Framework \App \Config \ScopeConfigInterface as ConfigInterface ;
13
12
use Magento \Catalog \Helper \Product as HelperProduct ;
14
13
15
14
/**
@@ -91,12 +90,13 @@ class Product extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
91
90
* @var \Magento\Catalog\Helper\Image
92
91
*/
93
92
private $ catalogImageHelper ;
93
+
94
94
/**
95
95
* Scope Config
96
96
*
97
- * @var ConfigInterface
97
+ * @var \Magento\Framework\App\Config\ScopeConfigInterface
98
98
*/
99
- protected $ scopeConfig ;
99
+ private $ scopeConfig ;
100
100
101
101
/**
102
102
* @param \Magento\Framework\Model\ResourceModel\Db\Context $context
@@ -108,7 +108,7 @@ class Product extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
108
108
* @param \Magento\Catalog\Model\ResourceModel\Product\Gallery $mediaGalleryResourceModel
109
109
* @param \Magento\Catalog\Model\Product\Gallery\ReadHandler $mediaGalleryReadHandler
110
110
* @param \Magento\Catalog\Model\Product\Media\Config $mediaConfig
111
- * @param ConfigInterface $scopeConfig
111
+ * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
112
112
* @param string $connectionName
113
113
* @param \Magento\Catalog\Model\Product $productModel
114
114
* @param \Magento\Catalog\Helper\Image $catalogImageHelper
@@ -124,7 +124,7 @@ public function __construct(
124
124
\Magento \Catalog \Model \ResourceModel \Product \Gallery $ mediaGalleryResourceModel ,
125
125
\Magento \Catalog \Model \Product \Gallery \ReadHandler $ mediaGalleryReadHandler ,
126
126
\Magento \Catalog \Model \Product \Media \Config $ mediaConfig ,
127
- ConfigInterface $ scopeConfig ,
127
+ \ Magento \ Framework \ App \ Config \ ScopeConfigInterface $ scopeConfig ,
128
128
$ connectionName = null ,
129
129
\Magento \Catalog \Model \Product $ productModel = null ,
130
130
\Magento \Catalog \Helper \Image $ catalogImageHelper = null
@@ -286,7 +286,7 @@ public function getCollection($storeId)
286
286
287
287
$ connection = $ this ->getConnection ();
288
288
$ urlsConfigCondition = '' ;
289
- if ($ this ->getCategoryProductURLsConfig ($ storeId )) {
289
+ if ($ this ->isCategoryProductURLsConfig ($ storeId )) {
290
290
$ urlsConfigCondition = 'NOT ' ;
291
291
}
292
292
@@ -474,7 +474,7 @@ private function getProductImageUrl($image)
474
474
*
475
475
* @return bool
476
476
*/
477
- protected function getCategoryProductURLsConfig ($ storeId )
477
+ private function isCategoryProductURLsConfig ($ storeId )
478
478
{
479
479
return (bool )$ this ->scopeConfig ->getValue (
480
480
HelperProduct::XML_PATH_PRODUCT_URL_USE_CATEGORY ,
0 commit comments