protected function _execute(InputInterface $input, OutputInterface $output)
{
require_once JELIX_LIB_PATH . 'installer/jInstaller.class.php';
\jAppManager::close();
$module = $input->getArgument('module');
if ($this->verbose()) {
$reporter = new \textInstallReporter();
} else {
$reporter = new \textInstallReporter('error');
}
$installer = new \jInstaller($reporter);
if ($this->allEntryPoint) {
$installer->uninstallModules(array($module));
} else {
$installer->uninstallModules(array($module), $this->entryPointName);
}
try {
\jAppManager::clearTemp(\jApp::tempBasePath());
} catch (\Exception $e) {
if ($e->getCode() == 2) {
$output->writeln("Error: bad path in jApp::tempBasePath(), it is equals to '" . jApp::tempBasePath() . "' !!");
$output->writeln(" Jelix cannot clear the content of the temp directory.");
$output->writeln(" you must clear it your self.");
$output->writeln(" Correct the path in application.init.php or create the directory");
} else {
$output->writeln("<error>Error: " . $e->getMessage() . "</error>");
}
}
\jAppManager::open();
}