Skip to content

Introduce ProductFilterInterface::getChannel to allow further extension#77

Open
adrienlucas wants to merge 1 commit into
synolia:mainfrom
adrienlucas:allow-extending-productfilter-getchannel
Open

Introduce ProductFilterInterface::getChannel to allow further extension#77
adrienlucas wants to merge 1 commit into
synolia:mainfrom
adrienlucas:allow-extending-productfilter-getchannel

Conversation

@adrienlucas
Copy link
Copy Markdown
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
Copy Markdown
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