Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/amasty/shopby-seo/Helper/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/amasty/shopby-seo/Helper/Config.php
<?php
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Shop by Seo for Magento 2 (System)
 */

namespace Amasty\ShopbySeo\Helper;

use Amasty\ShopbySeo\Model\ConfigProvider;
use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Framework\App\ObjectManager;
use Magento\Store\Model\ScopeInterface;

/**
 * @deprecared usage of helpers is deprecated use \Amasty\ShopbySeo\Model\ConfigProvider instead
 * @see \Amasty\ShopbySeo\Model\ConfigProvider
 */
class Config
{
    public const MODULE_PATH = 'amasty_shopby_seo/';

    /**
     * @var ScopeConfigInterface
     */
    private $scopeConfig;

    public function __construct(ScopeConfigInterface $scopeConfig)
    {
        $this->scopeConfig = $scopeConfig;
    }

    /**
     * @param $path
     * @param int $storeId
     *
     * @return mixed
     */
    public function getModuleConfig($path, $storeId = null)
    {
        return $this->scopeConfig->getValue(
            self::MODULE_PATH . $path,
            ScopeInterface::SCOPE_STORE,
            $storeId
        );
    }

    /**
     * @param $path
     * @param int $storeId
     *
     * @return mixed
     */
    public function getConfig($path, $storeId = null)
    {
        return $this->scopeConfig->getValue(
            $path,
            ScopeInterface::SCOPE_STORE,
            $storeId
        );
    }

    /**
     * @deprecared use \Amasty\ShopbySeo\Model\ConfigProvider::isSeoUrlEnabled
     */
    public function isSeoUrlEnabled($storeId = null)
    {
        return ObjectManager::getInstance()->get(ConfigProvider::class)->isSeoUrlEnabled($storeId);
    }

    /**
     * @deprecared use \Amasty\ShopbySeo\Model\ConfigProvider::isGenerateSeoByDefault
     */
    public function isGenerateSeoByDefault(?int $storeId = null): bool
    {
        return ObjectManager::getInstance()->get(ConfigProvider::class)->isGenerateSeoByDefault($storeId);
    }

    /**
     * @return string
     * @deprecared use \Amasty\ShopbySeo\Model\ConfigProvider::getOptionSeparator
     */
    public function getOptionSeparator()
    {
        return ObjectManager::getInstance()->get(ConfigProvider::class)->getOptionSeparator();
    }
}

Spamworldpro Mini