removeModule() публичный Метод

Removes the module with the given name.
public removeModule ( string $name )
$name string The module name.
Пример #1
0
 /**
  * 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;
 }