/**
* @param \Jelix\Core\Infos\ModuleInfos $moduleInfos
* @param Installer $mainInstaller
*/
function __construct(\Jelix\Core\Infos\ModuleInfos $moduleInfos, Installer $mainInstaller = null)
{
parent::__construct($moduleInfos, $mainInstaller);
if ($mainInstaller) {
$ini = $mainInstaller->installerIni;
$contexts = $ini->getValue($moduleInfos->name . '.contexts', '__modules_data');
if ($contexts !== null && $contexts !== "") {
$this->installerContexts = explode(',', $contexts);
}
}
}