public function registerModulesByCategories(array $modules)
    {
        $count = 0;
        foreach($modules as $categoryModules) {
            if (is_array($categoryModules)) {
                $count += $this->registerModules($categoryModules);
            } else {
                throw new \common_exception_InvalidArgumentType(self::class, __FUNCTION__, 0, 'array', $categoryModules);
            }
        }
        return $count;
    }
public function registerModulesByCategories(array $modules)
    {
        $count = 0;
        foreach($modules as $categoryModules) {
            if (is_array($categoryModules)) {
                $count += $this->registerModules($categoryModules);
            } else {
                throw new \common_exception_InvalidArgumentType(self::class, __FUNCTION__, 0, 'array', $categoryModules);
            }
        }
        return $count;
    }
public function registerModulesByCategories ( array $ modules ) { $ count = 0 ; foreach ( $ modules as $ categoryModules ) { if ( is_array ( $ categoryModules ) ) { $ count += $ this -> registerModules ( $ categoryModules ) ; } else { throw new \ common_exception_InvalidArgumentType ( self :: class , __FUNCTION__ , 0 , 'array' , $ categoryModules ) ; } } return $ count ; }
Register a list of modules gathered by categories
@param array $modules
@return int The number of registered modules
@throws \common_exception_InconsistentData
@throws \common_exception_InvalidArgumentType
Register a list of modules gathered by categories