public function setModuleParameters($moduleName, $parameters, $entrypoint = null)
{
if ($entrypoint !== null) {
if (!isset($this->epId[$entrypoint])) {
throw new \Exception("Unknown entrypoint name");
}
$epId = $this->epId[$entrypoint];
if (!isset($this->entryPoints[$epId])) {
throw new \Exception("Unknown entrypoint name");
}
$launcher = $this->entryPoints[$epId]->getLauncher($moduleName);
if ($launcher) {
$launcher->setInstallParameters($epId, $parameters);
}
} else {
foreach ($this->entryPoints as $epId => $ep) {
$launcher = $ep->getLauncher($moduleName);
if ($launcher) {
$launcher->setInstallParameters($epId, $parameters);
}
}
}
}