use Shopware\Core\Framework\DataAbstractionLayer\Search\Filter\EqualsFilter;
use Shopware\Core\Framework\Log\Package;
use Shopware\Core\System\Currency\CurrencyDefinition;
use Shopware\Core\System\SalesChannel\Entity\SalesChannelDefinitionInterface;
use Shopware\Core\System\SalesChannel\SalesChannelContext;
#[Package('buyers-experience')]
class SalesChannelCurrencyDefinition extends CurrencyDefinition
implements SalesChannelDefinitionInterface
{ public function processCriteria(Criteria
$criteria, SalesChannelContext
$context): void
{ $criteria->
addFilter(new EqualsFilter('currency.salesChannels.id',
$context->
getSalesChannel()->
getId()));
}}