Skip to content

Conversation

TimoBakx
Copy link
Contributor

I was implementing this example today and I noticed that it is possible to use NormalizerAwareInterface instead of SerializerAwareInterface. By using the first interface and corresponding trait, the instanceof NormalizerInterface check is no longer needed.

I also shortened the constant (for readability) and removed the now quite small passOn method to use the code inside directly in the normalize method.

@dunglas
Copy link
Member

dunglas commented Nov 5, 2018

As this is a fix, can you rebase against 2.3 please @TimoBakx?

@TimoBakx TimoBakx changed the base branch from master to 2.3 November 5, 2018 08:58
@TimoBakx
Copy link
Contributor Author

TimoBakx commented Nov 5, 2018

Rebased and retargeted to 2.8.

@dunglas dunglas merged commit e4745cc into api-platform:2.3 Nov 9, 2018
@dunglas
Copy link
Member

dunglas commented Nov 9, 2018

Thanks @TimoBakx

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