示例#1
0
文件: ModuleManager.php 项目: n2n/n2n
 public function registerModule(Module $module)
 {
     $this->modules[$module->getNamespace()] = $module;
 }
示例#2
0
文件: N2N.php 项目: n2n/n2n
 public static function registerModule(Module $module)
 {
     self::_i()->modules[(string) $module] = $module;
     if (null !== ($appConfigSource = $module->getAppConfigSource())) {
         self::_i()->combinedConfigSource->putAdditional((string) $module, $appConfigSource);
     }
 }