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

Provide mime type through the local adapter #292

Merged
merged 1 commit into from Jun 4, 2014
Merged

Provide mime type through the local adapter #292

merged 1 commit into from Jun 4, 2014

Conversation

gquemener
Copy link
Contributor

This patch brings mime type awareness to the local adapter as discussed here: #178 a few months ago.
It allows to smoothly integrate this feature among all the adapters.

@gquemener
Copy link
Contributor Author

ping @l3l0

@l3l0
Copy link
Collaborator

l3l0 commented Jun 3, 2014

Hello @gquemener sorry for waiting. PR looks great. I wonder if we should add mimeType method to filesystem as well like in size and checksum case https://github.com/KnpLabs/Gaufrette/blob/master/src/Gaufrette/Filesystem.php#L244

@gquemener
Copy link
Contributor Author

Hello @l3l0,
No problem ;)

I saw the FS methods yesterday and I think Gaufrette should provide them to be consistent (but wanted to hear it from you to be sure before implementing them).

Let me fix that.

@gquemener
Copy link
Contributor Author

I've renamed getMimeType into mimeType (for consistency with size, checksum, etc. methods) and I've added the shortcut through the Filesystem object.

l3l0 added a commit that referenced this pull request Jun 4, 2014
Provide mime type through the local adapter
@l3l0 l3l0 merged commit d985d7c into KnpLabs:master Jun 4, 2014
@gquemener gquemener deleted the mime-type-provider branch June 4, 2014 09:10
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

2 participants