Example #1
0
 public function registerModule(Module $module)
 {
     $this->modules[$module->getNamespace()] = $module;
 }
Example #2
0
File: N2N.php Project: 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);
     }
 }