File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -50,9 +50,8 @@ function __construct($path) {$this->_path = $path; df_google_init_service_accoun
50
50
* @used-by probabilities()
51
51
* @return Dominant
52
52
*/
53
- private function dominant () {return dfc ($ this , function () {
54
- /** @var Dominant $r */
55
- $ f = file_get_contents ($ this ->_path ); /** @var string $f */
53
+ private function dominant () {return dfc ($ this , function () {/** @var Dominant $r */
54
+ $ f = df_file_read ($ this ->_path ); /** @var string $f */
56
55
$ k = md5 ($ f . __CLASS__ ); /** @var string $k */
57
56
$ useCache = true ;
58
57
if ($ useCache && false !== ($ json = df_cache_load ($ k ))) { /** @var string|bool $resultS */
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " mage2pro/color"
3
- ,"version" : " 1.0.9 "
3
+ ,"version" : " 1.1.0 "
4
4
,"description" : " A product image color categorization module for Magento 2"
5
5
,"type" : " magento2-module"
6
6
,"homepage" : " https://mage2.pro/c/extensions/color"
11
11
,"homepage" : " https://mage2.pro/users/dmitry_fedyuk"
12
12
,"role" : " Developer"
13
13
}]
14
- ,"require" : {"google/cloud-vision" : " *" , "mage2pro/core" : " >=7.0.0 " }
14
+ ,"require" : {"google/cloud-vision" : " *" , "mage2pro/core" : " >=8.1.1 " }
15
15
,"autoload" : {"files" : [" registration.php" ], "psr-4" : {"Dfe\\ Color\\ " : " " }}
16
16
,"keywords" : [
17
17
" eCommerce"
You can’t perform that action at this time.
0 commit comments