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

remove decorator for media.repository #420

Merged
merged 2 commits into from Sep 21, 2023
Merged

remove decorator for media.repository #420

merged 2 commits into from Sep 21, 2023

Conversation

peterojo
Copy link
Contributor

@peterojo peterojo commented Sep 19, 2023

Summary

media.repository service is decorated in Shopware 6.4 and does not return EntityRepository.
In #375 we replaced references to EntityRepositoryInterface with EntityRepository to support shopware 6.5.
Decorators were removed in Shopware 6.5 as well.
Therefore type hinting with EntityRepository breaks on older versions.
This fix allows injection of either EntityRepository in 6.5 or MediaRepositoryDecorator in 6.4

Fixed issue:
fixes #419

@peterojo peterojo marked this pull request as ready for review September 19, 2023 16:58
@peterojo peterojo requested a review from a team as a code owner September 19, 2023 16:58
@peterojo peterojo merged commit 289bd73 into develop Sep 21, 2023
8 of 9 checks passed
@peterojo peterojo deleted the ECP-8628 branch September 21, 2023 14:21
@peterojo peterojo mentioned this pull request Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants