From 097bded2b840913980e13e14c1c64454089bde2b Mon Sep 17 00:00:00 2001 From: Jozsef Damokos Date: Wed, 8 Nov 2023 18:00:45 +0200 Subject: [PATCH] NEXT-26756 - Updated documentation regarding storage adapters --- guides/hosting/infrastructure/filesystem.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/guides/hosting/infrastructure/filesystem.md b/guides/hosting/infrastructure/filesystem.md index 820046ce8..d7a0731b9 100644 --- a/guides/hosting/infrastructure/filesystem.md +++ b/guides/hosting/infrastructure/filesystem.md @@ -100,7 +100,7 @@ shopware: Be aware of the **prod** in the config path. CDNs are typically for production environments, but you can also set them for all environments in `config/packages/shopware.yml`. ::: -## Integrated adapter configurations +## Supported adapter configurations ### Local @@ -115,6 +115,14 @@ shopware: ### Amazon S3 +In order to use the S3 adapter you need to install the `league/flysystem-async-aws-s3` package. + +```bash +composer require league/flysystem-async-aws-s3 +``` + +Example configuration: + ```yaml shopware: filesystem: @@ -137,7 +145,13 @@ If your S3 provider does not use buckets as subdomain like Minio in default conf ### Google Cloud Platform -The bucket needs to use the "Fine-grained" [ACL mode](https://cloud.google.com/storage/docs/access-control#choose_between_uniform_and_fine-grained_access). This is required so that Shopware can manage the ACL of the objects. +In order to use the Google Cloud Platform adapter you need to install the `league/flysystem-google-cloud-storage` package. + +```bash +composer require league/flysystem-google-cloud-storage +``` + +Example configuration: ```yaml shopware: @@ -152,6 +166,9 @@ shopware: keyFilePath: "{path-to-your-keyfile}" ``` +The bucket needs to use the "Fine-grained" [ACL mode](https://cloud.google.com/storage/docs/access-control#choose_between_uniform_and_fine-grained_access). This is required so that Shopware can manage the ACL of the objects. + + ## Add your own adapter To create your own adapter, check out the [official Flysystem guide](https://flysystem.thephpleague.com/v1/docs/advanced/creating-an-adapter/).