thephpleague / flysystem-bundle

Symfony bundle integrating Flysystem into Symfony applications
https://github.com/thephpleague/flysystem
MIT License
361 stars 68 forks source link

[Usage] When to Install league/flysystem-bundle vs league/flysystem #166

Closed cancan101 closed 2 months ago

cancan101 commented 3 months ago

This is a usage question / suggestion for doc improvement:

When do I need to (explicitly) install league/flysystem-bundle vs league/flysystem vs one of the specific adapters (e.g. league/flysystem-azure-blob-storage)?

I am using Symfony by way of Pimcore and have set up a flystem.yaml:

flysystem:
    storages:
        pimcore.asset.storage:
            adapter: azure

I am not otherwise directly calling any of the league supplied PHP directly.

maxhelias commented 2 months ago

For me, there's no need to document it. It's like Symfony : league/flysystem is like a component, the other specific adapters are like bridges and both are stand-alone packages, you can use them for any PHP application. And league/flysystem-bundle configure all classes in the container, and each storage create a service as indicated in the basic usage