<?php
namespace Magento\CatalogUrlRewrite\Model\ProductScopeRewriteGenerator;

/**
 * Interceptor class for @see \Magento\CatalogUrlRewrite\Model\ProductScopeRewriteGenerator
 */
class Interceptor extends \Magento\CatalogUrlRewrite\Model\ProductScopeRewriteGenerator implements \Magento\Framework\Interception\InterceptorInterface
{
    use \Magento\Framework\Interception\Interceptor;

    public function __construct(\Magento\CatalogUrlRewrite\Service\V1\StoreViewService $storeViewService, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\CatalogUrlRewrite\Model\ObjectRegistryFactory $objectRegistryFactory, \Magento\CatalogUrlRewrite\Model\Product\CanonicalUrlRewriteGenerator $canonicalUrlRewriteGenerator, \Magento\CatalogUrlRewrite\Model\Product\CategoriesUrlRewriteGenerator $categoriesUrlRewriteGenerator, \Magento\CatalogUrlRewrite\Model\Product\CurrentUrlRewritesRegenerator $currentUrlRewritesRegenerator, \Magento\CatalogUrlRewrite\Model\Product\AnchorUrlRewriteGenerator $anchorUrlRewriteGenerator, ?\Magento\UrlRewrite\Model\MergeDataProviderFactory $mergeDataProviderFactory = null, ?\Magento\Catalog\Api\CategoryRepositoryInterface $categoryRepository = null, ?\Magento\Framework\App\Config\ScopeConfigInterface $config = null, ?\Magento\Catalog\Api\ProductRepositoryInterface $productRepository = null, ?\Magento\CatalogUrlRewrite\Model\GetVisibleForStores $visibleForStores = null)
    {
        $this->___init();
        parent::__construct($storeViewService, $storeManager, $objectRegistryFactory, $canonicalUrlRewriteGenerator, $categoriesUrlRewriteGenerator, $currentUrlRewritesRegenerator, $anchorUrlRewriteGenerator, $mergeDataProviderFactory, $categoryRepository, $config, $productRepository, $visibleForStores);
    }

    /**
     * {@inheritdoc}
     */
    public function generateForGlobalScope($productCategories, \Magento\Catalog\Model\Product $product, $rootCategoryId = null)
    {
        $pluginInfo = $this->pluginList->getNext($this->subjectType, 'generateForGlobalScope');
        return $pluginInfo ? $this->___callPlugins('generateForGlobalScope', func_get_args(), $pluginInfo) : parent::generateForGlobalScope($productCategories, $product, $rootCategoryId);
    }
}
