torq / pimcore-flysystem-azure-bundle
Installs: 137
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Type:pimcore-bundle
Requires
- azure-oss/storage-blob-flysystem: ^1.2.0
- pimcore/pimcore: ^11.0
README
This package enables Pimcore to write to an Azure Storage Account via Flysystem. It acts as a wrapper around https://github.com/Azure-OSS/azure-storage-php-adapter-flysystem. To install:
- Run
composer require torq/pimcore-flysystem-azure-bundle
- Set environment variables and values for
AZURE_STORAGE_ACCOUNT_NAME
,AZURE_STORAGE_ACCOUNT_CONTAINER
,AZURE_STORAGE_ACCOUNT_CONTAINER_ASSETS
andAZURE_STORAGE_ACCOUNT_KEY
which will allow the bundle to write to your Storage Account. - Register the bundle by adding it to your
Kernel.php
:class Kernel extends PimcoreKernel { public function registerBundlesToCollection(BundleCollection $collection) { $collection->addBundle(new \Torq\PimcoreFlysystemAzureBundle\TorqPimcoreFlysystemAzureBundle); } }
- Add the contents of the file
flysystem_example.yaml
to your project'sflysystem.yaml
file (typically located atpimcore-root/config/packages/flysystem.yaml
).