Skip to content

Commit a241967

Browse files
1.1.0
1 parent a1d800c commit a241967

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Image.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ function __construct($path) {$this->_path = $path; df_google_init_service_accoun
5050
* @used-by probabilities()
5151
* @return Dominant
5252
*/
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 */
5655
$k = md5($f . __CLASS__); /** @var string $k */
5756
$useCache = true;
5857
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.0.9"
3+
,"version": "1.1.0"
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://mage2.pro/users/dmitry_fedyuk"
1212
,"role": "Developer"
1313
}]
14-
,"require": {"google/cloud-vision": "*", "mage2pro/core": ">=7.0.0"}
14+
,"require": {"google/cloud-vision": "*", "mage2pro/core": ">=8.1.1"}
1515
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Color\\": ""}}
1616
,"keywords": [
1717
"eCommerce"

0 commit comments

Comments
 (0)