8000 Test the format negotiator and reorganize it by GuilhemN · Pull Request #1149 · FriendsOfSymfony/FOSRestBundle · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@GuilhemN
Copy link
10BC0
Member
@GuilhemN GuilhemN commented Oct 6, 2015

This PR add a test for the FormatNegotiator. Several mistakes are fixed.

@GuilhemN GuilhemN changed the title Test the format negotiator Test the format negotiator and reorganize it Oct 6, 2015
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this mean that priorities now need to be mime types and we no longer support formats?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, for the moment I just removed it. I have to think how to replace this ...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok .. we should then create a follow up ticket for this. its annoying that the Request class does not give access to the mappings in Request::formats.

/cc @Tobion

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should maybe create an issue / a pr for symfony 2.8 or 3.0 to add a new method Request::getMimeTypes() and see what the symfony staff think about this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

0