nickolasburr / googlecloudphpautoloader
此包已废弃,不再维护。未建议替代包。
为在 Magento 1.x 中使用自动加载 Google Cloud PHP 类。
dev-master
2019-10-06 03:34 UTC
Requires
- php: >=5.5
- google/cloud-core: ~1.23
- mnsami/composer-custom-directory-installer: 1.1.*
This package is auto-updated.
Last update: 2024-01-28 08:37:56 UTC
README
为与 Magento 1.9 一起使用自动加载 Google Cloud PHP 类。
目录
Google Cloud Storage
默认情况下,仅安装了 google/cloud-core 及其依赖。如果您使用此模块与 NickolasBurr_GoogleCloudStorage 一起,请在 composer.json
文件中执行以下更新并运行 composer update
diff --git a/composer.json b/composer.json index 8bf5c11..369087d 100644 --- a/composer.json +++ b/composer.json @@ -17,14 +17,16 @@ "require": { "php": ">=5.5", "mnsami/composer-custom-directory-installer": "1.1.*", - "google/cloud-core": "~1.23" + "google/cloud-core": "~1.23", + "google/cloud-storage": "~1.9" }, "config": { "vendor-dir": "./lib/GoogleCloud/" }, "extra": { "installer-paths": { - "./lib/GoogleCloud/core": ["google/cloud-core"] + "./lib/GoogleCloud/core": ["google/cloud-core"], + "./lib/GoogleCloud/storage": ["google/cloud-storage"] } } }
要求
- Composer
- Magento 1.9
安装
modman clone https://github.com/auroraextensions/NickolasBurr_GoogleCloud.git
composer install --no-dev --working-dir=./.modman/NickolasBurr_GoogleCloud
使用
要在您的模块中使用 Google Cloud PHP 类,请将 <NickolasBurr_GoogleCloud>
添加为依赖项
<config>
<modules>
<Vendor_Package>
<active>true</active>
<codePool>community</codePool>
<depends>
<NickolasBurr_GoogleCloud/>
</depends>
</Vendor_Package>
</modules>
</config>