Skip to content
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

[5.6] Support URLs for custom filesystem drivers #23964

Merged
merged 1 commit into from
Apr 25, 2018

Conversation

benargo
Copy link
Contributor

@benargo benargo commented Apr 21, 2018

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
Copy link
Contributor

sisve commented Apr 21, 2018

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
Copy link
Contributor Author

benargo commented Apr 21, 2018

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.

None yet

3 participants