flysystem-bundle icon indicating copy to clipboard operation
flysystem-bundle copied to clipboard

Register a stream wrapper for each registered filesystem

Open dkarlovi opened this issue 3 years ago • 1 comments

For example

flysystem:
    storages:
        default.storage:
            adapter: 'local'
            options:
                directory: '%kernel.project_dir%/var/storage/default'

flysystem+default.storage://foo/bar/bat.csv points to %kernel.project_dir%/var/storage/default/foo/bar/bar/csv.

Similar to https://github.com/twistor/flysystem-stream-wrapper, but up to date.

This wrapper works with recent Flysystem: https://github.com/m2mtech/flysystem-stream-wrapper

Thinking about it further, it seems like a thing which could be opted-in per filesystem, something like

flysystem:
    storages:
        some.storage:
            adapter: 'asyncaws'
            stream_wrapper: true

dkarlovi avatar Apr 27 '22 12:04 dkarlovi

See this comment, it might be a good start : https://github.com/thephpleague/flysystem/issues/1602#issuecomment-2288315642

maxhelias avatar Aug 14 '24 13:08 maxhelias