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

Introduce ProductFilterInterface::getChannel to allow further extension #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adrienlucas
Copy link
Contributor

Q A
Bug fix? no
New feature? no
BC breaks? no
Fixed issue N.A.

Following the introduction of \Synolia\SyliusAkeneoPlugin\Filter\ProductFilterInterface, I replaced the dependency between the ProductFiltersRules repository and the two CreateSimpleProductEntitiesTask and CreateConfigurableProductEntitiesTask by a dependency on ProductFilterInterface.
In my case, it allows to reuse those tasks without having to fake the repository.

NB : I was tempted to move the initialization of $this->scope in the constructor of the tasks.. let me know if you find it a good idea !

@adrienlucas
Copy link
Contributor Author

Not sure why the Behat tests are failing...

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

Successfully merging this pull request may close these issues.

1 participant