PHP Class Contao\ModuleLoader

The class reads the autoload.ini files of the available modules and returns an array of active modules with their dependencies solved. Usage: $arrModules = ModuleLoader::getActive(); $arrModules = ModuleLoader::getDisabled();
Deprecation: Deprecated since Contao 4.0, to be removed in Contao 5.0. Use the container parameter "kernel.bundles" instead.
显示文件 Open project: contao/core-bundle

Public Methods

Method Description
getActive ( ) : array Return the active modules as array
getDisabled ( ) : array Return the disabled modules as array

Method Details

getActive() public static method

Return the active modules as array
public static getActive ( ) : array
return array An array of active modules

getDisabled() public static method

Return the disabled modules as array
public static getDisabled ( ) : array
return array An array of disabled modules