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

Protected Member Functions

 configure ()
 
 execute (InputInterface $input, OutputInterface $output)
 
- Protected Member Functions inherited from AbstractCacheCommand
 configure ()
 

Additional Inherited Members

- Public Member Functions inherited from AbstractCacheCommand
 __construct (Manager $cacheManager)
 
- Data Fields inherited from AbstractCacheCommand
const INPUT_KEY_BOOTSTRAP = 'bootstrap'
 
- Protected Attributes inherited from AbstractCacheCommand
 $cacheManager
 

Detailed Description

Command for checking cache status

@api

Since
100.0.2

Definition at line 18 of file CacheStatusCommand.php.

Member Function Documentation

◆ configure()

configure ( )
protected

{}

Definition at line 23 of file CacheStatusCommand.php.

24  {
25  $this->setName('cache:status');
26  $this->setDescription('Checks cache status');
27  parent::configure();
28  }

◆ execute()

execute ( InputInterface  $input,
OutputInterface  $output 
)
protected

{}

Definition at line 33 of file CacheStatusCommand.php.

34  {
35  $output->writeln('Current status:');
36  foreach ($this->cacheManager->getStatus() as $cache => $status) {
37  $output->writeln(sprintf('%30s: %d', $cache, $status));
38  }
39  }
$status
Definition: order_status.php:8

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