Skip to content

…Do not treat classes implementing \Traversable as collection #3463

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

Merged
merged 3 commits into from
Apr 15, 2020
Merged

…Do not treat classes implementing \Traversable as collection #3463

merged 3 commits into from
Apr 15, 2020

Conversation

renaudclosset
Copy link
Contributor

Do not treat classes implementing \Traversable as collection if defined as resource

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tickets #3461
License MIT
Doc PR -

Classes implementing \Traversable were always interpreted as Collection by the ResourceClassResolver service, based on the fact they implemented the \Traversable interface.

Classes that implement this interface will now only be treated as a Collection if they are not explicitly defined as a Resource in the configuration.

@soyuka soyuka merged commit aad8a84 into api-platform:2.5 Apr 15, 2020
@soyuka
Copy link
Member

soyuka commented Apr 15, 2020

cs-fixes unrelated thanks @renaudclosset

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