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.

RebuildAllCommand.php 890B

123456789101112131415161718192021222324252627282930313233
  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 Base_ThemeCommon;
  12. use Symfony\Component\Console\Command\Command;
  13. use Symfony\Component\Console\Input\InputInterface;
  14. use Symfony\Component\Console\Output\OutputInterface;
  15. class RebuildAllCommand extends Command
  16. {
  17. protected function configure(){
  18. $this
  19. ->setName('rebuild:all')
  20. ->setDescription('Rebuild EPESI default theme and cache')
  21. ;
  22. }
  23. protected function execute(InputInterface $input, OutputInterface $output) {
  24. $output->writeln('Rebuilding themes...');
  25. Base_ThemeCommon::themeup();
  26. $output->writeln('Theme rebuilt! Rebuilding cache...');
  27. Cache::clear();
  28. ModuleManager::create_common_cache();
  29. $output->writeln('Cache rebuilt!');
  30. }
  31. }