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
Fixture are usually used during a command and is considered stateless.
ChannelContext is supposed to be stateful : Sylius/Sylius#9987 (comment)
A Block has a product_codes and a channels nodes, if a product need to be found within a channel, then iterate through channels values to retrieve Products is a solution to avoid using the ChannelContext. If no channels is given then retrieve the Products without the Channel filter.
What do you think about that ?
The text was updated successfully, but these errors were encountered:
Fixture are usually used during a command and is considered stateless.
ChannelContext is supposed to be stateful : Sylius/Sylius#9987 (comment)
A
Block
has aproduct_codes
and achannels
nodes, if a product need to be found within a channel, then iterate throughchannels
values to retrieveProducts
is a solution to avoid using theChannelContext
. If nochannels
is given then retrieve theProducts
without theChannel
filter.What do you think about that ?
The text was updated successfully, but these errors were encountered: