public removeModule ( string $name ) | ||
$name | string | The module name. |
public function removeModule($name);
/** * Handles the "module --clean" command. * * @param Args $args The console arguments * @param IO $io The I/O * * @return int The status code */ public function handleClean(Args $args, IO $io) { $expr = Expr::method('getState', Expr::same(ModuleState::NOT_FOUND)); foreach ($this->moduleManager->findModules($expr) as $module) { $io->writeLine('Removing ' . $module->getName()); $this->moduleManager->removeModule($module->getName()); } return 0; }