EPESI BIM • Business Information Manager • Cloud CRM/ERP http://epe.si/ https://epe.si
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CacheRebuildCommand.php 666B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: pjedwabny
  5. * Date: 08.09.15
  6. * Time: 21:10
  7. */
  8. namespace Epesi\Console;
  9. use Cache;
  10. use ModuleManager;
  11. use Symfony\Component\Console\Command\Command;
  12. use Symfony\Component\Console\Input\InputInterface;
  13. use Symfony\Component\Console\Output\OutputInterface;
  14. class CacheRebuildCommand extends Command
  15. {
  16. protected function configure(){
  17. $this
  18. ->setName('cache:rebuild')
  19. ->setDescription('Rebuild EPESI common cache')
  20. ;
  21. }
  22. protected function execute(InputInterface $input, OutputInterface $output) {
  23. Cache::clear();
  24. ModuleManager::create_common_cache();
  25. }
  26. }