public function registerModule(Module $module) { $this->modules[$module->getNamespace()] = $module; }
public static function registerModule(Module $module) { self::_i()->modules[(string) $module] = $module; if (null !== ($appConfigSource = $module->getAppConfigSource())) { self::_i()->combinedConfigSource->putAdditional((string) $module, $appConfigSource); } }