diff --git a/src/Helper/ProductVariantPriceHelper.php b/src/Helper/ProductVariantPriceHelper.php index 2a4b90c..2228247 100644 --- a/src/Helper/ProductVariantPriceHelper.php +++ b/src/Helper/ProductVariantPriceHelper.php @@ -8,7 +8,7 @@ use Sylius\Component\Core\Calculator\ProductVariantPricesCalculatorInterface; use Sylius\Component\Core\Model\ProductVariantInterface; -final class ProductVariantPriceHelper +final class ProductVariantPriceHelper implements ProductVariantPriceHelperInterface { private ProductVariantPricesCalculatorInterface $productVariantPricesCalculator; diff --git a/src/Helper/ProductVariantPriceHelperInterface.php b/src/Helper/ProductVariantPriceHelperInterface.php new file mode 100644 index 0000000..4395701 --- /dev/null +++ b/src/Helper/ProductVariantPriceHelperInterface.php @@ -0,0 +1,14 @@ +googleTagManager = $googleTagManager; diff --git a/src/TagManager/ViewItemList.php b/src/TagManager/ViewItemList.php index fda6727..295e594 100644 --- a/src/TagManager/ViewItemList.php +++ b/src/TagManager/ViewItemList.php @@ -7,7 +7,7 @@ use Doctrine\Common\Collections\ArrayCollection; use StefanDoorn\SyliusGtmEnhancedEcommercePlugin\Helper\GoogleImplementationEnabled; use StefanDoorn\SyliusGtmEnhancedEcommercePlugin\Helper\ProductIdentifierHelper; -use StefanDoorn\SyliusGtmEnhancedEcommercePlugin\Helper\ProductVariantPriceHelper; +use StefanDoorn\SyliusGtmEnhancedEcommercePlugin\Helper\ProductVariantPriceHelperInterface; use Sylius\Component\Channel\Context\ChannelContextInterface; use Sylius\Component\Core\Model\ProductInterface; use Sylius\Component\Core\Model\TaxonInterface; @@ -32,7 +32,7 @@ final class ViewItemList implements ViewItemListInterface private GoogleImplementationEnabled $googleImplementationEnabled; - private ProductVariantPriceHelper $productVariantPriceHelper; + private ProductVariantPriceHelperInterface $productVariantPriceHelper; public function __construct( GoogleTagManagerInterface $googleTagManager, @@ -41,7 +41,7 @@ public function __construct( LocaleContextInterface $localeContext, ProductIdentifierHelper $productIdentifierHelper, ProductVariantResolverInterface $productVariantResolver, - ProductVariantPriceHelper $productVariantPriceHelper, + ProductVariantPriceHelperInterface $productVariantPriceHelper, GoogleImplementationEnabled $googleImplementationEnabled ) { $this->googleTagManager = $googleTagManager;