Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jul 26, 2023
1 parent 4241343 commit 77ffe9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function __construct(string $path) {$this->_path = $path; df_google_init_service
* @used-by self::probabilities()
*/
private function dominant():Dominant {return dfc($this, function() {/** @var Dominant $r */
$f = df_file_read($this->_path); /** @var string $f */
$f = df_contents($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.2.0"
,"version": "1.2.1"
,"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://upwork.com/fl/mage2pro"
,"role": "Developer"
}]
,"require": {"google/cloud-vision": "*", "mage2pro/core": ">=9.0.2"}
,"require": {"google/cloud-vision": "*", "mage2pro/core": ">=9.9.8"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Color\\": ""}}
,"keywords": [
"eCommerce"
Expand Down

0 comments on commit 77ffe9b

Please sign in to comment.