Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Usesecretkey.php
Go to the documentation of this file.
1 <?php
11 
16 class Usesecretkey extends \Magento\Framework\App\Config\Value
17 {
21  protected $_backendUrl;
22 
33  public function __construct(
34  \Magento\Framework\Model\Context $context,
35  \Magento\Framework\Registry $registry,
37  \Magento\Framework\App\Cache\TypeListInterface $cacheTypeList,
38  \Magento\Backend\Model\UrlInterface $backendUrl,
39  \Magento\Framework\Model\ResourceModel\AbstractResource $resource = null,
40  \Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null,
41  array $data = []
42  ) {
43  $this->_backendUrl = $backendUrl;
44  parent::__construct($context, $registry, $config, $cacheTypeList, $resource, $resourceCollection, $data);
45  }
46 
50  public function afterSave()
51  {
52  $this->_backendUrl->renewSecretUrls();
53  return parent::afterSave();
54  }
55 }
$config
Definition: fraud_order.php:17
$resource
Definition: bulk.php:12
__construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\App\Config\ScopeConfigInterface $config, \Magento\Framework\App\Cache\TypeListInterface $cacheTypeList, \Magento\Backend\Model\UrlInterface $backendUrl, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[])