Skip to content

Commit 77ffe9b

Browse files
1 parent 4241343 commit 77ffe9b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function __construct(string $path) {$this->_path = $path; df_google_init_service
4949
* @used-by self::probabilities()
5050
*/
5151
private function dominant():Dominant {return dfc($this, function() {/** @var Dominant $r */
52-
$f = df_file_read($this->_path); /** @var string $f */
52+
$f = df_contents($this->_path); /** @var string $f */
5353
$k = md5($f . __CLASS__); /** @var string $k */
5454
$useCache = true;
5555
if ($useCache && false !== ($json = df_cache_load($k))) { /** @var string|bool $resultS */

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mage2pro/color"
3-
,"version": "1.2.0"
3+
,"version": "1.2.1"
44
,"description": "A product image color categorization module for Magento 2"
55
,"type": "magento2-module"
66
,"homepage": "https://mage2.pro/c/extensions/color"
@@ -11,7 +11,7 @@
1111
,"homepage": "https://upwork.com/fl/mage2pro"
1212
,"role": "Developer"
1313
}]
14-
,"require": {"google/cloud-vision": "*", "mage2pro/core": ">=9.0.2"}
14+
,"require": {"google/cloud-vision": "*", "mage2pro/core": ">=9.9.8"}
1515
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Color\\": ""}}
1616
,"keywords": [
1717
"eCommerce"

0 commit comments

Comments
 (0)