b374k
m1n1 1.01
Apache/2.4.41 (Ubuntu)
Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
uid=33(www-data) gid=33(www-data) groups=33(www-data)
server ip : 62.171.164.128 | your ip : 127.0.0.1
safemode OFF
 >  / home / a / home / dev2.destoffenstraat.com / vendor / magento / framework / Module / Output /
Filename/home/a/home/dev2.destoffenstraat.com/vendor/magento/framework/Module/Output/Config.php
Size3.11 kb
Permissionrw-r--r--
Ownerroot : root
Create time21-Aug-2025 12:26
Last modified07-Jan-2021 21:08
Last accessed23-Aug-2025 00:46
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php
/**
* Module Output Config Model
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\Module\Output;

/**
* @deprecated 101.0.0 Magento does not support disabling/enabling modules output from the Admin Panel since 2.2.0
* version. Module output can still be enabled/disabled in configuration files. However, this functionality should
* not be used in future development. Module design should explicitly state dependencies to avoid requiring output
* disabling. This functionality will temporarily be kept in Magento core, as there are unresolved modularity
* issues that will be addressed in future releases.
*/
class Config implements \Magento\Framework\Module\Output\ConfigInterface
{
/**
* XPath in the configuration where module statuses are stored
* @deprecated 100.2.0
*/
const XML_PATH_MODULE_OUTPUT_STATUS = 'advanced/modules_disable_output/%s';

/**
* @var \Magento\Framework\App\Config\ScopeConfigInterface
* @deprecated 101.0.0
*/
protected $_scopeConfig;

/**
* @var string
* @deprecated 101.0.0
*/
protected $_storeType;

/**
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
* @param string $scopeType
*/
public function __construct(
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
$scopeType
) {
$this->_scopeConfig = $scopeConfig;
$this->_storeType = $scopeType;
}

/**
* Whether a module is enabled in the configuration or not
*
* @param string $moduleName Fully-qualified module name
* @deprecated 101.0.0 Magento does not support disabling/enabling modules output from the Admin Panel since 2.2.0
* version. Module output can still be enabled/disabled in configuration files. However, this functionality should
* not be used in future development. Module design should explicitly state dependencies to avoid requiring output
* disabling. This functionality will temporarily be kept in Magento core, as there are unresolved modularity
* issues that will be addressed in future releases.
* @return boolean
*/
public function isEnabled($moduleName)
{
return $this->isSetFlag(sprintf(self::XML_PATH_MODULE_OUTPUT_STATUS, $moduleName));
}

/**
* Retrieve module enabled specific path
*
* @param string $path Fully-qualified config path
* @deprecated 101.0.0 Magento does not support disabling/enabling modules output from the Admin Panel since 2.2.0
* version. Module output can still be enabled/disabled in configuration files. However, this functionality should
* not be used in future development. Module design should explicitly state dependencies to avoid requiring output
* disabling. This functionality will temporarily be kept in Magento core, as there are unresolved modularity
* issues that will be addressed in future releases.
* @return boolean
*/
public function isSetFlag($path)
{
return $this->_scopeConfig->isSetFlag($path, $this->_storeType);
}
}