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

Making the RefundFactory implement the factory interface #223

Merged
merged 2 commits into from
Oct 22, 2020
Merged

Making the RefundFactory implement the factory interface #223

merged 2 commits into from
Oct 22, 2020

Conversation

mamazu
Copy link
Member

@mamazu mamazu commented Oct 16, 2020

Reason: The RefundFactory is used in the Resource Controller and therefore has to has to have this method, otherwise the controller can not be loaded as a service:

TypeError: Argument 5 passed to Sylius\Bundle\ResourceBundle\Controller\ResourceController::__construct() must implement interface Sylius\Component\Resource\Factory\FactoryInterface, instance of Sylius\RefundPlugin\Factory\RefundFactory given

Fixes #186

@mamazu mamazu requested a review from a team as a code owner October 16, 2020 08:10
@Zales0123 Zales0123 added the Bug Confirmed bugs or bugfixes. label Oct 16, 2020
Copy link
Member

@Zales0123 Zales0123 left a comment

Choose a reason for hiding this comment

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

I agree with the reasoning and the fix 👌 The easiest way to fix the build would be to conflict with "symplify/package-builder": "^8.3.25" 🚀

@mamazu
Copy link
Member Author

mamazu commented Oct 16, 2020

Thanks for the hint. I will add it.

@Zales0123 Zales0123 merged commit 0337fbb into Sylius:master Oct 22, 2020
@Zales0123
Copy link
Member

Thank you, @mamazu! 🎉

@mamazu mamazu deleted the factory_interface branch October 22, 2020 09:24
@loevgaard
Copy link
Contributor

loevgaard commented Oct 22, 2020

❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed bugs or bugfixes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Factories not implementing FactoryInterface
5 participants