1up-lab / OneupFlysystemBundle

A Flysystem integration for your Symfony projects.
MIT License
634 stars 118 forks source link

How to get directory #196

Closed ahmed-bhs closed 4 years ago

ahmed-bhs commented 5 years ago

I have this config and I want to get via League\Flysystem\MountManager service or another service the directory value inside a php controller !! Any idea would be appreciated

oneup_flysystem:
    adapters:
        nfs_adapter:
            local:
                directory: "/%dfs_nfs_path%/$var_dir$/$storage_dir$"
sheeep commented 4 years ago

There's probably no way to get this from the MountManager. I think you should use a parameter for the configuration which you can also access in a controller.