Skip to content

Commit c3ee366

Browse files
1.0.9
1 parent 74bf3b7 commit c3ee366

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

Image.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,7 @@ function probabilities() {return dfc($this, function() {
4343
* @used-by vendor/mage2pro/color/view/frontend/templates/index.phtml
4444
* @param string $path
4545
*/
46-
function __construct($path) {
47-
dfcf(function() {
48-
// 2019-08-21
49-
// https://googleapis.github.io/google-cloud-php/#/docs/google-cloud/v0.107.1/guides/authentication
50-
// https://github.com/googleapis/google-auth-library-php/tree/v1.5.2#application-default-credentials
51-
putenv('GOOGLE_APPLICATION_CREDENTIALS=' . df_fs_etc('google-app-credentials.json'));
52-
});
53-
$this->_path = $path;
54-
}
46+
function __construct($path) {$this->_path = $path; df_google_init_service_account();}
5547

5648
/**
5749
* 2019-08-22

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.8"
3+
,"version": "1.0.9"
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": ">=5.4.0"}
14+
,"require": {"google/cloud-vision": "*", "mage2pro/core": ">=7.0.0"}
1515
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Color\\": ""}}
1616
,"keywords": [
1717
"eCommerce"

0 commit comments

Comments
 (0)