![]() 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/magento/module-captcha/Helper/Adminhtml/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /** * Captcha helper for adminhtml area * * @author Magento Core Team <[email protected]> */ namespace Magento\Captcha\Helper\Adminhtml; class Data extends \Magento\Captcha\Helper\Data { /** * @var \Magento\Backend\App\ConfigInterface */ protected $_backendConfig; /** * @param \Magento\Framework\App\Helper\Context $context * @param \Magento\Store\Model\StoreManager $storeManager * @param \Magento\Framework\Filesystem $filesystem * @param \Magento\Captcha\Model\CaptchaFactory $factory * @param \Magento\Backend\App\ConfigInterface $backendConfig */ public function __construct( \Magento\Framework\App\Helper\Context $context, \Magento\Store\Model\StoreManager $storeManager, \Magento\Framework\Filesystem $filesystem, \Magento\Captcha\Model\CaptchaFactory $factory, \Magento\Backend\App\ConfigInterface $backendConfig ) { $this->_backendConfig = $backendConfig; parent::__construct($context, $storeManager, $filesystem, $factory); } /** * Returns config value for admin captcha * * @param string $key The last part of XML_PATH_$area_CAPTCHA_ constant (case insensitive) * @param \Magento\Store\Model\Store $store * @return \Magento\Framework\App\Config\Element */ public function getConfig($key, $store = null) { return $this->_backendConfig->getValue('admin/captcha/' . $key); } /** * Get website code * * @param mixed $website * @return string */ protected function _getWebsiteCode($website = null) { return 'admin'; } }