public function registerModules(array $modules)
    {
        $count = 0;
        foreach($modules as $module) {
            if (is_array($module)) {
                $module = $this->createFromArray($module);
            }
            $this->registry->register($module);
            $count ++;
        }
        return $count;
    }
public function registerModules(array $modules)
    {
        $count = 0;
        foreach($modules as $module) {
            if (is_array($module)) {
                $module = $this->createFromArray($module);
            }
            $this->registry->register($module);
            $count ++;
        }
        return $count;
    }
public function registerModules ( array $ modules ) { $ count = 0 ; foreach ( $ modules as $ module ) { if ( is_array ( $ module ) ) { $ module = $ this -> createFromArray ( $ module ) ; } $ this -> registry -> register ( $ module ) ; $ count ++ ; } return $ count ; }
Register a list of modules
@param array $modules
@return int The number of registered modules
@throws \common_exception_InconsistentData
Register a list of modules