You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Invalid definition for service "sylius_refund.controller.refund": argument 5 of "Sylius\Bundle\ResourceBundle\Controller\ResourceController::__construct" accepts "Sylius\Component\Resource\Factory\FactoryInterface", "Sylius\RefundPlugin\Factory\RefundFactory" passed.
Possibly these factories should implement the Sylius factory interface?
The text was updated successfully, but these errors were encountered:
…mazu)
This PR was merged into the 1.0-dev branch.
Discussion
----------
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
Commits
-------
2af6869 Making the RefundFactory implement the factory interface
50fa3da Adding composer conflict to fix the pipeline
When I run
php bin/console lint:container
I get:Invalid definition for service "sylius_refund.controller.refund": argument 5 of "Sylius\Bundle\ResourceBundle\Controller\ResourceController::__construct" accepts "Sylius\Component\Resource\Factory\FactoryInterface", "Sylius\RefundPlugin\Factory\RefundFactory" passed.
Possibly these factories should implement the Sylius factory interface?
The text was updated successfully, but these errors were encountered: