Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CacheCleanCommand.php
Go to the documentation of this file.
1 <?php
8 
16 {
20  protected function configure()
21  {
22  $this->setName('cache:clean');
23  $this->setDescription('Cleans cache type(s)');
24  parent::configure();
25  }
26 
33  protected function performAction(array $cacheTypes)
34  {
35  $this->eventManager->dispatch('adminhtml_cache_flush_system');
36  $this->cacheManager->clean($cacheTypes);
37  }
38 
42  protected function getDisplayMessage()
43  {
44  return 'Cleaned cache types:';
45  }
46 }