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

Move TemplateRegistryInterface::TYPE_* constants #6752

Merged

Conversation

franmomu
Copy link
Member

@franmomu franmomu commented Jan 8, 2021

Subject

They have been moved to FieldDescriptionInterface since they are the values of FieldDescriptionInterface::getType().

In the future, maybe we can create classes for each type and have some configuration and logic in there instead of having it in the associated template.

I am targeting this branch, because these changes are BC.

Closes #6749.

Changelog

### Deprecated
- Deprecated `TemplateRegistryInterface::TYPE_*` constants, they have been moved to `FieldDescriptionInterface`.

@franmomu franmomu added the minor label Jan 8, 2021
wbloszyk
wbloszyk previously approved these changes Jan 8, 2021
@wbloszyk
Copy link
Member

wbloszyk commented Jan 8, 2021

@sonata-project/contributors Can we merge it?

@franmomu franmomu requested a review from a team January 8, 2021 12:26
Copy link
Member

@VincentLanglet VincentLanglet left a comment

Choose a reason for hiding this comment

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

@franmomu franmomu force-pushed the move_constants_field_description branch from eb6e045 to b9936be Compare January 8, 2021 14:27
They have been moved to FieldDescriptionInterface since they are
the values of FieldDescriptionInterface::getType.
@franmomu franmomu force-pushed the move_constants_field_description branch from b9936be to 4c2a846 Compare January 8, 2021 14:33
@wbloszyk wbloszyk merged commit 6871593 into sonata-project:3.x Jan 8, 2021
@wbloszyk
Copy link
Member

wbloszyk commented Jan 8, 2021

Thank you @franmomu

@franmomu franmomu deleted the move_constants_field_description branch January 8, 2021 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Split TemplateRegistryInterface constants
3 participants