Skip to content

[5.6] Support URLs for custom filesystem drivers#23964

Merged
taylorotwell merged 1 commit into
laravel:5.6from
benargo:filesystem-driver-urls
Apr 25, 2018
Merged

[5.6] Support URLs for custom filesystem drivers#23964
taylorotwell merged 1 commit into
laravel:5.6from
benargo:filesystem-driver-urls

Conversation

@benargo

@benargo benargo commented Apr 21, 2018

Copy link
Copy Markdown
Contributor

Some custom filesystem drivers don’t include URL support at the adapter level, but can be added to the driver through the creation of custom Flysystem plugins. Applications can detect the plugin, but the Filesystem framework currently neglects to check for the ‘getUrl’ method on the driver level.

For example, I have created a plugin for the Microsoft Azure driver which adds URL support, but at present cannot be used with this framework due to this small omission.

Some custom filesystem drivers don’t include URL support at the adapter level, but can be added to the driver through the creation of custom plugins. Applications can detect the plugin, but the Filesystem framework currently neglects to check for the ‘getUrl’ method on the driver level.
@sisve

sisve commented Apr 21, 2018

Copy link
Copy Markdown
Contributor

Would it make sense to add a test to make sure this functionality isn't removed in the future? Or perhaps add an interface for the getUrl functionality that we look for?

@benargo

benargo commented Apr 21, 2018

Copy link
Copy Markdown
Contributor Author

I think it would make sense. I'm struggling to conceptualise how to add test coverage in practice though. Any thoughts?

@taylorotwell
taylorotwell merged commit 97aac9e into laravel:5.6 Apr 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants