Skip to content

Commit

Permalink
1.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Oct 25, 2020
1 parent 74bf3b7 commit c3ee366
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
10 changes: 1 addition & 9 deletions Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,7 @@ function probabilities() {return dfc($this, function() {
* @used-by vendor/mage2pro/color/view/frontend/templates/index.phtml
* @param string $path
*/
function __construct($path) {
dfcf(function() {
// 2019-08-21
// https://googleapis.github.io/google-cloud-php/#/docs/google-cloud/v0.107.1/guides/authentication
// https://github.com/googleapis/google-auth-library-php/tree/v1.5.2#application-default-credentials
putenv('GOOGLE_APPLICATION_CREDENTIALS=' . df_fs_etc('google-app-credentials.json'));
});
$this->_path = $path;
}
function __construct($path) {$this->_path = $path; df_google_init_service_account();}

/**
* 2019-08-22
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.8"
,"version": "1.0.9"
,"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": ">=5.4.0"}
,"require": {"google/cloud-vision": "*", "mage2pro/core": ">=7.0.0"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Color\\": ""}}
,"keywords": [
"eCommerce"
Expand Down

0 comments on commit c3ee366

Please sign in to comment.