Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AbstractCacheCommand.php
Go to the documentation of this file.
1 <?php
8 
10 use Symfony\Component\Console\Command\Command;
11 use Symfony\Component\Console\Input\InputOption;
12 
17 abstract class AbstractCacheCommand extends Command
18 {
22  const INPUT_KEY_BOOTSTRAP = 'bootstrap';
23 
29  protected $cacheManager;
30 
37  {
38  $this->cacheManager = $cacheManager;
39  parent::__construct();
40  }
41 
45  protected function configure()
46  {
47  $this->addOption(
48  self::INPUT_KEY_BOOTSTRAP,
49  null,
50  InputOption::VALUE_REQUIRED,
51  'add or override parameters of the bootstrap'
52  );
53  }
54 }