-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate OneupFlysystem and league/flysystem-bundle in the docs #1550
Comments
both seem still to be actively maintained. https://symfony.com/bundles has no entry for flysystem directly (searching symfony for flysystem mainly finds LiipImagineBundle documentation :-) ) i agree to cleanup the documentation to only have examples with league/flysystem-bundle. i suggest we just put a note somewhere saying that we only depend on flysystem itself, and one can use whichever bundle one prefers to configure the flysystem services, but for simplicity we show examples for league/flysystem-bundle. |
Can you reopen #1500? Or should we have the discussion in this issue? I'm trying to rewrite the documentation for flysystem-bundle, and am still stuck. Is FlysystemResolver still necessary in v3 of this bundle, or is FlysystemResolverV2 sufficient? |
Here's my first pass at it. The sad reality is that I don't understand resolvers, and the examples were always with OneUp (which is why I submitted #1500 ) . I should probably fix my own code first and then use it for the documentation. ConfigurationThe value of # config/packages/flysystem.yaml
services:
Aws\S3\S3Client:
arguments:
- version: '2006-03-01'
credentials:
key: '%env(AWS_S3_ACCESS_ID)%'
secret: '%env(AWS_S3_ACCESS_SECRET)%'
flysystem:
storages:
storage.aws:
adapter: 'aws'
options:
client: 'Aws\S3\S3Client'
bucket: '%env(AWS_S3_BUCKET_NAME)%'
prefix: '%env(S3_STORAGE_PREFIX)%'
storage.local:
adapter: 'local'
options:
directory: '%kernel.project_dir%/var/storage/uploads'
storage_filesystem:
adapter: 'lazy'
options:
source: '%env(APP_UPLOADS_SOURCE)%' # config/packages/liip_imagine.yaml
liip_imagine:
loaders:
flysystem_loader:
flysystem:
# this comes from flysystem.yaml
filesystem_service: uploads_filesystem
# default loader to use for all filter sets
data_loader: flysystem_loader
resolvers:
profile_photos:
flysystem:
filesystem_service: uploads_filesystem
root_url: "https://images.example.com"
cache_prefix: media/cache
visibility: !php/const:League\Flysystem\Visibility::PUBLIC There are several configuration options available:
|
lets keep the discussion here. the note about the service name: oneup creates different service names than the league flysystem bundle. imo we should best have a working example with league and where we explain that this is a service defined by flysystem bundle we could maybe mention how it would be named when using the oneup bundle. |
I find the docs somewhat confusing regarding flysystem. My recommendation would be to document league/flysystem-bundle first, and have a separate page for OneUp. I used to use OneUp, but during some Symfony upgrade I switched because I couldn't get something to work. So I wouldn't even know how to document OneUp, I just really want to get it out of the way, the names are so similar it's difficult to cut and paste when they're on the same page.
Regarding theleague's bundle, version 3 had some substantial changes, we should document against that. In particular, visibility / privacy is handled differently.
The text was updated successfully, but these errors were encountered: