-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
72 additions
and
80 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
/** | ||
* Faonni | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Open Software License (OSL 3.0) | ||
* that is bundled with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://opensource.org/licenses/osl-3.0.php | ||
* | ||
* | ||
* DISCLAIMER | ||
* | ||
* Do not edit or add to this file if you wish to upgrade module to newer | ||
* versions in the future. | ||
* | ||
* @package Faonni_Browser | ||
* @copyright Copyright (c) 2016 Karliuka Vitalii(karliuka.vitalii@gmail.com) | ||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
*/ | ||
namespace Faonni\Browser\Helper; | ||
|
||
use Magento\Store\Model\ScopeInterface; | ||
use Magento\Framework\App\Helper\AbstractHelper; | ||
|
||
/** | ||
* Faonni Browser Data helper | ||
*/ | ||
class Data extends AbstractHelper | ||
{ | ||
/** | ||
* Browser processor code config path | ||
*/ | ||
const XML_BROWSER_PROCESSOR = 'web/browser_capabilities/processor'; | ||
|
||
/** | ||
* Retrieve browser processor code | ||
* | ||
* @return string | ||
*/ | ||
public function getProcessor() | ||
{ | ||
return $this->_getConfig(self::XML_BROWSER_PROCESSOR); | ||
} | ||
|
||
/** | ||
* Retrieve store configuration data | ||
* | ||
* @param string $path | ||
* @return string|null | ||
*/ | ||
protected function _getConfig($path) | ||
{ | ||
return $this->scopeConfig->getValue($path, ScopeInterface::SCOPE_STORE); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.