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

Allow reusing of the MediaType for other correctly interfaced media objects #2313

Merged
merged 1 commit into from
Jun 25, 2022

Conversation

esserj
Copy link
Contributor

@esserj esserj commented Jun 23, 2022

Subject

The default value for data_class is set to $this->class already and it is configurable, allowing override improves reusability without breaking anything.

I am targeting this branch, because it is BC

Changelog

### Changed
- `MediaType` form type will now allow you to pass your own `data_class` instead of relying on the provided `$this->class`.

…bjects

The default value for data_class is set to `$this->class` already and it is configurable, allowing override improved reusability without breaking anything.
@esserj esserj changed the title Allow reusing of the MediaType for other correctly interfaced media o… Allow reusing of the MediaType for other correctly interfaced media objects Jun 23, 2022
@VincentLanglet VincentLanglet merged commit 19f702f into sonata-project:4.x Jun 25, 2022
@VincentLanglet
Copy link
Member

I gonna create a release after the merge of #2314

@esserj
Copy link
Contributor Author

esserj commented Jun 27, 2022

Thank you @VincentLanglet !

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.

3 participants