alaa / magento2-scope-config-wrapper
Magento 2 module
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
pkg:composer/alaa/magento2-scope-config-wrapper
Requires
- php: ~7.1.3|7.2.*
This package is auto-updated.
Last update: 2025-07-16 04:19:58 UTC
README
a wrapper module around scope config reader and writer
How to install
composer require alaa/magento2-scope-config-wrapper
Api
- 
Write interface \Alaa\ScopeConfig\Model\ScopeConfigWriterInterface- $writer->saveWebsiteConfig($path, $value, $scopeId);
- $writer->saveStoreConfig($path, $value, $scopeId);
- $witer->saveDefaultConfig($path, $value);
- $writer->saveConfig($path, $value, $scope = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeId = 0);
- $writer->deleteWebsiteConfig($path, $scopeId);
- $writer->deleteStoreConfig($path, $scopeId);
- $writer->deleteDefaultConfig($path);
- $writer->deleteConfig($path, $scope = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeId = 0);
 
- 
Read interface \Alaa\ScopeConfig\Model\ScopeConfigReaderInterface- $reader->getDefaultConfigValue(string $path);
- $reader->getWebsiteConfigValue(string $path, $scopeId = null);
- $reader->getStoreConfigValue(string $path, $scopeId = null);
- $reader->getDefaultConfigFlag(string $path);
- $reader->getWebsiteConfigFlag(string $path, $scopeId = null);
- $reader->getStoreConfigFlag(string $path, $scopeId = null);
- $reader->getConfigValue(string $path, string $scope = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeId = null);
- $reader->getConfigFlag(string $path, string $scope = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeId = null);