diff --git a/Helper/Data.php b/Helper/Data.php index 3f6932a..6ef2261 100644 --- a/Helper/Data.php +++ b/Helper/Data.php @@ -14,37 +14,6 @@ class Data extends \Magento\Framework\App\Helper\AbstractHelper { - /** - * @var \Magento\Framework\ObjectManagerInterface - */ - protected $_objectManager; - - - /** - * Core store config - * - * @var \Magento\Framework\App\Config\ScopeConfigInterface - */ - protected $_scopeConfig; - - - /** - * @param \Magento\Framework\App\Helper\Context $context - * @param \Magento\Framework\ObjectManagerInterface - */ - - public function __construct( - \Magento\Framework\App\Helper\Context $context, - \Magento\Framework\ObjectManagerInterface $objectManager, - \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig - ) - { - $this->_scopeConfig = $scopeConfig; - $this->_objectManager = $objectManager; - parent::__construct($context); - } - - public function getShippingType(){ $arrayValues = []; $configData = $this->getConfigData('shipping_type'); @@ -81,7 +50,7 @@ public function getConfigData($field) $path = 'carriers/' . $code . '/' . $field; - return $this->_scopeConfig->getValue( + return $this->scopeConfig->getValue( $path, \Magento\Store\Model\ScopeInterface::SCOPE_STORE ); diff --git a/composer.json b/composer.json index b33d4c8..b1d40e4 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "magento/framework": "100.0.*|100.1.*" }, "type": "magento2-module", - "version": "1.2.0", + "version": "1.2.1", "license": [ "OSL-3.0", "AFL-3.0" diff --git a/etc/module.xml b/etc/module.xml index e5c98cc..06699f3 100755 --- a/etc/module.xml +++ b/etc/module.xml @@ -1,6 +1,6 @@ - +