Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Protected Member Functions
CacheCleanCommand Class Reference
Inheritance diagram for CacheCleanCommand:
AbstractCacheTypeManageCommand AbstractCacheManageCommand AbstractCacheCommand

Protected Member Functions

 configure ()
 
 performAction (array $cacheTypes)
 
 getDisplayMessage ()
 
- Protected Member Functions inherited from AbstractCacheTypeManageCommand
 performAction (array $cacheTypes)
 
 getDisplayMessage ()
 
 execute (InputInterface $input, OutputInterface $output)
 
- Protected Member Functions inherited from AbstractCacheManageCommand
 configure ()
 
 getRequestedTypes (InputInterface $input)
 
- Protected Member Functions inherited from AbstractCacheCommand
 configure ()
 

Additional Inherited Members

- Public Member Functions inherited from AbstractCacheTypeManageCommand
 __construct (Manager $cacheManager, EventManagerInterface $eventManager)
 
- Public Member Functions inherited from AbstractCacheCommand
 __construct (Manager $cacheManager)
 
- Data Fields inherited from AbstractCacheManageCommand
const INPUT_KEY_TYPES = 'types'
 
- Data Fields inherited from AbstractCacheCommand
const INPUT_KEY_BOOTSTRAP = 'bootstrap'
 
- Protected Attributes inherited from AbstractCacheTypeManageCommand
 $eventManager
 
- Protected Attributes inherited from AbstractCacheCommand
 $cacheManager
 

Detailed Description

Command for cleaning cache

@api

Since
100.0.2

Definition at line 15 of file CacheCleanCommand.php.

Member Function Documentation

◆ configure()

configure ( )
protected

{}

Definition at line 20 of file CacheCleanCommand.php.

21  {
22  $this->setName('cache:clean');
23  $this->setDescription('Cleans cache type(s)');
24  parent::configure();
25  }

◆ getDisplayMessage()

getDisplayMessage ( )
protected

{}

Definition at line 42 of file CacheCleanCommand.php.

43  {
44  return 'Cleaned cache types:';
45  }

◆ performAction()

performAction ( array  $cacheTypes)
protected

Cleans cache types

Parameters
array$cacheTypes
Returns
void

Definition at line 33 of file CacheCleanCommand.php.

34  {
35  $this->eventManager->dispatch('adminhtml_cache_flush_system');
36  $this->cacheManager->clean($cacheTypes);
37  }

The documentation for this class was generated from the following file: