Пример #1
0
 /**
  * @param \Magento\Framework\Cache\FrontendInterface $frontend
  * @param array $params
  */
 public function __construct(\Magento\Framework\Cache\FrontendInterface $frontend, array $params)
 {
     parent::__construct($frontend);
     $this->_params = $params;
 }
Пример #2
0
 /**
  * @param \Magento\Framework\Cache\FrontendInterface $frontend
  * @param \Magento\Framework\App\Cache\StateInterface $cacheState
  * @param string $identifier Cache type identifier
  */
 public function __construct(\Magento\Framework\Cache\FrontendInterface $frontend, \Magento\Framework\App\Cache\StateInterface $cacheState, $identifier)
 {
     parent::__construct($frontend);
     $this->_cacheState = $cacheState;
     $this->_identifier = $identifier;
 }
Пример #3
0
 /**
  * @param FrontendInterface $frontend
  * @param LoggerHandler $logger
  */
 public function __construct(FrontendInterface $frontend, LoggerHandler $logger)
 {
     parent::__construct($frontend);
     $this->logger = $logger;
 }
Пример #4
0
 /**
  * @param \Magento\Framework\Cache\FrontendInterface $frontend
  * @param string[] $backendPrefixes Backend class prefixes to be striped for profiling informativeness
  */
 public function __construct(\Magento\Framework\Cache\FrontendInterface $frontend, $backendPrefixes = array())
 {
     parent::__construct($frontend);
     $this->_backendPrefixes = $backendPrefixes;
 }
Пример #5
0
 /**
  * @param \Magento\Framework\Cache\FrontendInterface $frontend
  * @param string $tag Cache tag name
  */
 public function __construct(\Magento\Framework\Cache\FrontendInterface $frontend, $tag)
 {
     parent::__construct($frontend);
     $this->_tag = $tag;
 }