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

Add decorated adapter abstract class #1731

Merged
merged 2 commits into from
Nov 18, 2023

Conversation

jnoordsij
Copy link
Contributor

Inspired by the old trait https://github.com/thephpleague/flysystem-adapter-decorator.

When working on my own adapters a bit, I was creating a sort of decorated adapter and was looking for way to reduce the boilerplate involved. I ran into the old trait, but found it was no longer up-to-date. Then I created an abstract base class of my own to achieve basically the same. Given that it might be useful to others and also can be used here for the ReadOnly adapter, I decided to create this PR.

Note: I'm not sure if there's enough interest in merging this and maintaining it here, given the old trait also looks discontinued. Feel free to close if it's not useful enough, then this can just be here as a reference for people looking into this.

@frankdejonge frankdejonge merged commit 5ed8f6f into thephpleague:3.x Nov 18, 2023
5 checks passed
@jnoordsij jnoordsij deleted the add-decorated-adapter branch November 19, 2023 10:01
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.

2 participants