torqit / pimcore-flysystem-azure-bundle
此包的最新版本(v4.0.0)没有提供许可证信息。
v4.0.0
2024-01-08 16:43 UTC
Requires
README
此包允许Pimcore通过Flysystem写入Azure存储账户。它是对https://github.com/thephpleague/flysystem-azure-blob-storage的封装。要安装
- 运行
composer require torqit/pimcore-flysystem-azure-bundle
- 设置环境变量和值,包括
AZURE_STORAGE_ACCOUNT_NAME
、AZURE_STORAGE_ACCOUNT_CONTAINER
、AZURE_STORAGE_ACCOUNT_CONTAINER_ASSETS
和AZURE_STORAGE_ACCOUNT_KEY
,这将允许该包写入您的存储账户。 - 通过将其添加到您的
Kernel.php
文件中注册该包。class Kernel extends PimcoreKernel { public function registerBundlesToCollection(BundleCollection $collection) { $collection->addBundle(new \TorqIT\FlysystemAzureBundle\FlysystemAzureBundle\FlysystemAzureBundle); } }
- 将
flysystem_example.yaml
文件的内容添加到项目的flysystem.yaml
文件中(通常位于pimcore-root/config/packages/flysystem.yaml
)。