55 parent::__construct($context);
57 $this->_cacheState = $cacheState;
58 $this->_cacheFrontendPool = $cacheFrontendPool;
74 $allTypes = array_keys($this->_cacheTypeList->getTypes());
75 $invalidTypes = array_diff($types, $allTypes);
76 if (count($invalidTypes) > 0) {
77 throw new LocalizedException(
__(
'These cache type(s) don\'t exist: %1', join(
', ', $invalidTypes)));
__construct(Action\Context $context, \Magento\Framework\App\Cache\TypeListInterface $cacheTypeList, \Magento\Framework\App\Cache\StateInterface $cacheState, \Magento\Framework\App\Cache\Frontend\Pool $cacheFrontendPool, \Magento\Framework\View\Result\PageFactory $resultPageFactory)
_validateTypes(array $types)