CacheEnableCommand.php 621 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Backend\Console\Command;
  7. /**
  8. * Command for enabling cache
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. class CacheEnableCommand extends AbstractCacheSetCommand
  14. {
  15. /**
  16. * {@inheritdoc}
  17. */
  18. protected function configure()
  19. {
  20. $this->setName('cache:enable');
  21. $this->setDescription('Enables cache type(s)');
  22. parent::configure();
  23. }
  24. /**
  25. * Is enable cache
  26. *
  27. * @return bool
  28. */
  29. protected function isEnable()
  30. {
  31. return true;
  32. }
  33. }