Skip to content

Commit

Permalink
1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Oct 15, 2022
1 parent a1d800c commit a241967
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ function __construct($path) {$this->_path = $path; df_google_init_service_accoun
* @used-by probabilities()
* @return Dominant
*/
private function dominant() {return dfc($this, function() {
/** @var Dominant $r */
$f = file_get_contents($this->_path); /** @var string $f */
private function dominant() {return dfc($this, function() {/** @var Dominant $r */
$f = df_file_read($this->_path); /** @var string $f */
$k = md5($f . __CLASS__); /** @var string $k */
$useCache = true;
if ($useCache && false !== ($json = df_cache_load($k))) { /** @var string|bool $resultS */
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/color"
,"version": "1.0.9"
,"version": "1.1.0"
,"description": "A product image color categorization module for Magento 2"
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/color"
Expand All @@ -11,7 +11,7 @@
,"homepage": "https://mage2.pro/users/dmitry_fedyuk"
,"role": "Developer"
}]
,"require": {"google/cloud-vision": "*", "mage2pro/core": ">=7.0.0"}
,"require": {"google/cloud-vision": "*", "mage2pro/core": ">=8.1.1"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Color\\": ""}}
,"keywords": [
"eCommerce"
Expand Down

0 comments on commit a241967

Please sign in to comment.