Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Secure.php
Go to the documentation of this file.
1 <?php
7 
12 class Secure extends \Magento\Framework\App\Config\Value
13 {
17  protected $_mergeService;
18 
29  public function __construct(
30  \Magento\Framework\Model\Context $context,
31  \Magento\Framework\Registry $registry,
33  \Magento\Framework\App\Cache\TypeListInterface $cacheTypeList,
34  \Magento\Framework\View\Asset\MergeService $mergeService,
35  \Magento\Framework\Model\ResourceModel\AbstractResource $resource = null,
36  \Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null,
37  array $data = []
38  ) {
39  $this->_mergeService = $mergeService;
40  parent::__construct($context, $registry, $config, $cacheTypeList, $resource, $resourceCollection, $data);
41  }
42 
48  public function afterSave()
49  {
50  if ($this->isValueChanged()) {
51  $this->_mergeService->cleanMergedJsCss();
52  }
53  return parent::afterSave();
54  }
55 }
$config
Definition: fraud_order.php:17
__construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\App\Config\ScopeConfigInterface $config, \Magento\Framework\App\Cache\TypeListInterface $cacheTypeList, \Magento\Framework\View\Asset\MergeService $mergeService, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[])
Definition: Secure.php:29
$resource
Definition: bulk.php:12