EPESI BIM • Business Information Manager • Cloud CRM/ERP http://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.
 
 
 
 
 
 

49 regels
2.2 KiB

  1. #!/usr/bin/env php
  2. <?php
  3. // application.php
  4. use Symfony\Component\Console\Application;
  5. use Symfony\Component\Console\Input\ArgvInput;
  6. use Symfony\Component\Console\Input\InputOption;
  7. require_once 'vendor/autoload.php';
  8. $input = new ArgvInput();
  9. $data_dir = $input->getParameterOption('--data-dir', false);
  10. define('SET_SESSION', false);
  11. if ($data_dir) {
  12. define('DATA_DIR', $data_dir);
  13. }
  14. require 'include.php';
  15. ModuleManager::load_modules();
  16. $application = new Application();
  17. $application->getDefinition()->addOption(new InputOption('data-dir', null, InputOption::VALUE_REQUIRED, 'Data directory to use'));
  18. $application->add(new \Epesi\Console\Modules\ListModulesCommand());
  19. $application->add(new \Epesi\Console\Modules\DisableModuleCommand());
  20. $application->add(new \Epesi\Console\Modules\EnableModuleCommand());
  21. $application->add(new \Epesi\Console\Modules\InstallModuleCommand());
  22. $application->add(new \Epesi\Console\Modules\UninstallModuleCommand());
  23. $application->add(new \Epesi\Console\Modules\EnableAllModuleCommand());
  24. $application->add(new \Epesi\Console\CacheRebuildCommand());
  25. $application->add(new \Epesi\Console\ThemeRebuildCommand());
  26. $application->add(new \Epesi\Console\Maintenance\MaintenanceStatusCommand());
  27. $application->add(new \Epesi\Console\Maintenance\MaintenanceOnCommand());
  28. $application->add(new \Epesi\Console\Maintenance\MaintenanceOffCommand());
  29. $application->add(new \Epesi\Console\SearchClearCommand());
  30. $application->add(new \Epesi\Console\SearchIndexCommand());
  31. $application->add(new \Epesi\Console\Backup\BackupDbCommand());
  32. $application->add(new \Epesi\Console\Backup\BackupFilesCommand());
  33. $application->add(new \Epesi\Console\Backup\BackupAllCommand());
  34. $application->add(new \Epesi\Console\Backup\ListBackupsCommand());
  35. $application->add(new \Epesi\Console\Demo\GenerateContactsCommand());
  36. $application->add(new \Epesi\Console\Develop\CreateModuleCommand());
  37. $application->add(new \Epesi\Console\Develop\CreatePatchCommand());
  38. $application->add(new \Epesi\Console\Develop\CreateTestModuleCommand());
  39. $application->add(new \Epesi\Console\ShellCommand());
  40. $application->add(new \Epesi\Console\RebuildAllCommand());
  41. $application->add(new \Epesi\Console\RemoveAllCommand());
  42. $application->run($input);